xml unknown encoding: big5

"Martin v. Löwis" martin at v.loewis.de
Fri Feb 13 09:58:20 CET 2004

Michael Hudson wrote:
>>I use xml.sax to parse big5 encoding xml file.
>>And I got message "unknown encoding: big5".
>>What can I do?
> Install CJKCodecs?  (Just a guess).

That helps, but is insufficient. Expat (or, atleast, pyexpat)
supports only single-byte non-UTF charsets. To parse multi-byte
charsets, you need xmlproc (from PyXML), and you need to tell
xml.sax to use xmlproc (e.g. by asking for drv_xmlproc).


More information about the Python-list mailing list