[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qexo-general] Qexo encoding problem
From: |
Per Bothner |
Subject: |
Re: [Qexo-general] Qexo encoding problem |
Date: |
Wed, 19 Mar 2003 08:06:34 -0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312 |
GU Felix wrote:
> I'm a newbie using qexo. Now my problem is that i have to do quering
> in a XML file with GB2312 encoding,that meaning there is some chinese
> content in my xml file. But when i use qexo to do query, it will return
> some encoded content just like "<item
> id="1"><price>4.12</price><name>天天</name></item>" .
> the Element name should include some chinese words, but now it be
> encoded to "天". Anybody knows how I can reverse these string to
> chinese word or other solutions for my problem?
You could try removing the lines:
else if (v >= 127)
super.write("&#"+v+";");
in the writeChars(int v) method in the file
gnu/xml/XMLPrinter.java.
We need some way of controlling this, perhaps using a default
base on the current encoding.
--
--Per Bothner
address@hidden http://www.bothner.com/per/