由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
XML版 - xml and chinese character
相关主题
Why does software xxx work with Big5: it not workRe: SOS for HTML textbook -- 香港网页学校
How do I know what character sets the XML softwarHow to write a SMIL document
Some Big5 documents fail with strange errors?Your first SMIL document
I cannot see all the characters on my HTML browseHelp!! Does XML tags have reserved word? Such as.
Perl+XML+GB作了一个转换txt到Eink reader适用的pdf的软件,PDF4Eink
newbie question.. what's process instruction?batch ape->flac convertor 有什么推荐?
什么软件可以删除重复节点?请教485 pending跳槽
What is XML?kindle到手啦,请教~~
相关话题的讨论汇总
话题: chinese话题: xml话题: encoding话题: character话题: tagged
进入XML版参与讨论
1 (共1页)
y********o
发帖数: 2565
1
Hi.
I am trying to process an xml-tagged chinese document using Python's minidom.
But my code gets stuck when it hits the first Chinese character in the
xml-tagged document. Python complains that the Chinese character is an invalid
token, and thus not well-formed.
I tried using encoding="UTF-8" and encoding="UTF-16" and encoding="GB2312" and
encoding="GBK" in the xml-tagged chinese document. None of them helped.
Would you please give a hint? Thanks.
c***r
发帖数: 4631
2

minidom.
invalid
and
try ISO8859-1

【在 y********o 的大作中提到】
: Hi.
: I am trying to process an xml-tagged chinese document using Python's minidom.
: But my code gets stuck when it hits the first Chinese character in the
: xml-tagged document. Python complains that the Chinese character is an invalid
: token, and thus not well-formed.
: I tried using encoding="UTF-8" and encoding="UTF-16" and encoding="GB2312" and
: encoding="GBK" in the xml-tagged chinese document. None of them helped.
: Would you please give a hint? Thanks.

1 (共1页)
进入XML版参与讨论
相关主题
kindle到手啦,请教~~Perl+XML+GB
请教一个Tom/棋人的棋谱的问题。newbie question.. what's process instruction?
用mplayer和红蓝3d眼镜观看带ass字幕的左右3d视频什么软件可以删除重复节点?
mailing list is so popularWhat is XML?
Why does software xxx work with Big5: it not workRe: SOS for HTML textbook -- 香港网页学校
How do I know what character sets the XML softwarHow to write a SMIL document
Some Big5 documents fail with strange errors?Your first SMIL document
I cannot see all the characters on my HTML browseHelp!! Does XML tags have reserved word? Such as.
相关话题的讨论汇总
话题: chinese话题: xml话题: encoding话题: character话题: tagged