From: John Delacour (JD@BD8.COM)
Date: Mon Dec 01 2003 - 03:44:17 EST
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
This archive was generated by hypermail 2.1.5 : Mon Dec 01 2003 - 04:23:13 EST