perl 中的unicode, encoding等等
时间:2007-02-10 来源:pipehappy
古老的时代已经过去了。现在大部分的语言都应该是可以支持各种各样的编码了。
在perl中间有这样的几个常用的:
$str = "\x{201c}";
print encode('euc-cn', $str);
print encode('gb2312', $str);
print encode('gbk');
在perl中间有这样的几个常用的:
$str = "\x{201c}";
print encode('euc-cn', $str);
print encode('gb2312', $str);
print encode('gbk');
相关阅读 更多 +