how to convert a string variable from gb2312 into utf8 ?
WIth perl 5.8.2 I would do this:
use Encode ; $string = "text in gb2312"; Encode::from_to($string, "gb2312", "utf8") ; print $string ;
JD
how to convert a string variable from gb2312 into utf8 ?
use Encode ; $string = "text in gb2312"; Encode::from_to($string, "gb2312", "utf8") ; print $string ;