473,406 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

xml unknown encoding: big5

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
4 4022
"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
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
> 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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: WEIWEIWEI | last post by:
Hi Al I'd like to encode a string submitted from a utf-8 form in a aspx page to big5 Any ideas on how to do that I try sth like public static string unicode_big5(string src) { Encoding big5...
2
by: THY | last post by:
Hi, I am developing a website in english & chinese both language. whenever I save, it required I set the encoding in advanced save options. But I found there are 4 related to unicode, can anyone...
2
by: WEIWEIWEI | last post by:
Hi Al I'd like to encode a string submitted from a utf-8 form in a aspx page to big5 Any ideas on how to do that I try sth like public static string unicode_big5(string src) { Encoding big5...
1
by: Soda | last post by:
I try to write a ASP.Net web application which will post data to other websites I'm use NameValueCollection class add(...) method and WebClient class uploadvalue(...) method to post data to...
5
by: James Wong | last post by:
Dear all, I've a web service function and it contains a parameter in System.Text.Encoding. I found that the data type of this parameter in caller application becomes MyWebSvcName.Encoding...
5
by: nielsgron | last post by:
Hi, I have created a database on DB2 8.1 and 8.2 for Windows using the codeset "Big5" with the command: db2 CREATE DATABASE TWBIG5 USING CODESET BIG5 TERRITORY TW When I try to connect to...
7
by: EmeraldShield | last post by:
We have an application that uses UTF8 everywhere to load / save / process documents. One of our clients is having a problem with BIG Encoded files being trashed after running through our app. ...
0
by: asterisk | last post by:
Hi, I am already mad for charset issue, please help me clear it. My question here is, I want to retrieve fields from Sql server database, whose collation is Latin, but the content of field is...
2
by: jo3c | last post by:
Hi.. Im trying to get some information out of a windows sever 2003 chinese active directory system so let's say encoding is probably big5 or utf-8 what im doing is simliar to ldapsearch in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.