xml and chinese character# XML - WWW明日之星
y*o
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.
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.