unicode转中文

<pre name="code" class="html">[root@dr-mysql01 ~]# cat a1.pl
my $str="$ARGV[0]";
use Encode;
use Encode::CN;
use JSON;
use URI::Escape;
use LWP::Simple;
$str =~ s/\\u([0-9a-fA-F]{4})/pack("U",,hex($1))/eg;
print "$str"; [root@dr-mysql01 ~]# perl a1.pl "\u767b\u5f55\u6210\u529f"
Wide character in print at a1.pl line 8.
登录成功You have mail in /var/spool/mail/root
上一篇:linux iostat 性能指标说明


下一篇:iOS8怎么降级到iOS7,苹果iOS8怎么刷回iOS7