473,657 Members | 2,771 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4037
"Ray B. X. Zhou" <ra******@msa.h inet.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.h inet.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
6540
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 = Encoding.GetEncoding("big5") Encoding unicode = Encoding.UTF8 byte unicodeBytes = unicode.GetBytes(src)
2
2623
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 tell me what's the different and which to choose ? Unicode (UTF-8 without signature) - Codepage 65001 Unicode (UTF-8 with signature) - Codepage 65001 Unicode - Codepage 1200
2
4477
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 = Encoding.GetEncoding("big5") Encoding unicode = Encoding.UTF8 byte unicodeBytes = unicode.GetBytes(src)
1
1655
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 other website. It works fine if the data is in English, however, when it contain characters in other languages (such as Chinese big5), it will display some un-readable characters. In web.config file I set encoding to "big5"
5
3499
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 (where "MyWebSvcName" is the name of my web service). I don't know how to assign value to this parameter. (I'm using VB.NET 2003.) Here are some sample codes:
5
7588
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 the database using the DB2 Universal Type 4 JDBC drivers v2.6 I get an error: "com.ibm.db2.jcc.b.DisconnectException: encoding not supported!!
7
4465
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. Indeed I have verified that if I go to a website in Taiwan and save the file in BIG5 and then just load / save the file with a UTF8 text reader / write some bytes are modified. How can I correct this? It was my understanding the UTF8 was...
0
995
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 garbage data because we encoded data by charset big5 in browser to store them into database. when I copy them into notepad.exe and browse them in browser with big5, they are correct, but when I retrieve them by using System.text.encoding to convert big5...
2
5550
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 shell with my python script using python ldap module the result is not the correct encoding..
0
8306
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8825
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7327
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4152
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.