It's really effect well ! Thanks JD! What a nice guy you are!
----- Original Message ----- From: John Delacour To: Hu Guoxin ; [EMAIL PROTECTED] Sent: Monday, December 01, 2003 4:44 PM Subject: Re: help about Convert gb2312 to utf8 in Perl! 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