By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,772 Members | 937 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,772 IT Pros & Developers. It's quick & easy.

xml unknown encoding: big5

P: n/a
I use xml.sax to parse big5 encoding xml file.
And I got message "unknown encoding: big5".
What can I do?
Thank you very much.

Ray
Jul 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"Ray B. X. Zhou" <ra******@msa.hinet.net> writes:
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).

Cheers,
mwh

--
Worryingly, DEFUN appears to be a function that removes all the
fun from something: after using it all your code is converted
to C++. -- Tim Bradshaw, comp.lang.lisp
Jul 18 '05 #2

P: n/a
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).

Regards,
Martin

Jul 18 '05 #3

P: n/a
> Install CJKCodecs? (Just a guess).

Not yet. I'll try it. Thank you very much.

Ray
"Ray B. X. Zhou" <ra******@msa.hinet.net> writes:
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).

Cheers,
mwh

--
Worryingly, DEFUN appears to be a function that removes all the
fun from something: after using it all your code is converted
to C++. -- Tim Bradshaw, comp.lang.lisp

Jul 18 '05 #4

P: n/a
Thank you very much. I'll try it.

--

Ray
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).

Regards,
Martin

Jul 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.