l*******d 发帖数: 4 | 1 Hi, Anyone knows how to use Perl XML::Parser
with GB chinese? i know it supports UTF-8,
but when there has GB code in XML document,
parser generates errors even the encoding is "UTF-8".
I have tried to chang the xml file encoding attribute.
useless.
thanks.
linkspeed | a*****a 发帖数: 438 | 2 Doesn't Perl5.6 support Unicode?
【在 l*******d 的大作中提到】 : Hi, Anyone knows how to use Perl XML::Parser : with GB chinese? i know it supports UTF-8, : but when there has GB code in XML document, : parser generates errors even the encoding is "UTF-8". : I have tried to chang the xml file encoding attribute. : useless. : thanks. : linkspeed
| l*******d 发帖数: 4 | 3 Yes, it does,
but, when i tyope chinese GB into a UTF-8 sample
XML file, the parser reports error on the chinese.
This file workds weell before entering GB code
It does have UTF-8 chinese code.
quite strange
【在 a*****a 的大作中提到】 : Doesn't Perl5.6 support Unicode?
| a*****a 发帖数: 438 | 4 did you specify encoding in xml definition?
what's the encoding for chinese? gb2312?
【在 l*******d 的大作中提到】 : Yes, it does, : but, when i tyope chinese GB into a UTF-8 sample : XML file, the parser reports error on the chinese. : This file workds weell before entering GB code : It does have UTF-8 chinese code. : quite strange
|
|