How to Convert gb2312 to utf8 in Perl!

来源:互联网 发布:手机版绘画软件 编辑:程序博客网 时间:2024/06/09 03:16
WIth perl 5.8.2 I would do this:

use Encode ;
$string = "text in gb2312";
Encode::from_to($string, "gb2312", "utf8") ;
print $string ;
原创粉丝点击