At 3:09 pm +0800 1/12/03, Hu Guoxin wrote:
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




Reply via email to