avatar
l*d
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
avatar
a*a
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

avatar
l*d
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?
avatar
a*a
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

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。