perl 在win下输出中文乱码问题
摘要:
1 use utf8; 2 my $name = '你好'; 3 binmode(STDOUT, ":encoding(gbk)"); 4 print $name,"\n"; 5 6 # #或 7 # use Encode; 8 # my $str='你好'; 9 # $str = encode("gbk", decode("utf-8", $str)); 10 # prin... 阅读全文
posted @ 2017-02-19 23:18 Perl6 阅读(1773) 评论(0) 推荐(0) 编辑