[PerlChina] XML中文

Question wanliyou at gmail.com
Tue Aug 12 23:53:22 PDT 2008


各位不吝赐教啊,难道真要自己搞regexp?
DOM不支持中文。。。这个匪夷所思啊。

2008/8/13 Question <wanliyou at gmail.com>

> 现在用这个
>     use XML::Simple;
>     my $xs1 = new XML::Simple;
>
>     my $doc = $xs1->XMLin($file);
>
> 读入是正常的,但中文print出来就不对了,binmode(STDOUT, ":utf8")更不行。。。
>
>
> --
> >: ~
>



-- 
>: ~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/china-pm/attachments/20080813/6dfcc138/attachment-0001.html>


More information about the China-pm mailing list