[Perl&PHP]GB2312->UTF8

PERL
use Encode ;
$subject = Encode::encode_utf8(decode(gb2312=>$subject));
print $subject ;

PHP
$subject=iconv(“GB2312“,”UTF-8“,$subject);

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.