[jdom-interest] encoding="MS950"
Stuart
stuart at truetel.com
Tue Nov 23 00:35:57 PST 2004
All,
Sorry for the multiple postings but I think I was wrong about MS950 not
being supported in jdk1.4. I also discovered the following entry in the
jdk1.4 information:
x-windows-950 MS950 Windows Traditional Chinese
Not sure what I am doing wrong. *8-(
Regards,
Stuart
-----Original Message-----
From: Stuart [mailto:stuart at truetel.com]
Sent: Monday, November 22, 2004 10:51 PM
To: Elliotte Harold
Cc: jdom-interest at jdom.org
Subject: RE: [jdom-interest] encoding="MS950"
All,
I originally posted a question about the SAXBuilder supporting the encoding
format MS950. I recieved a reply stating that the encoding format support
is determined by the JDK (not the parser). I also found that MS950 no
longer appears supported under jdk1.4 BUT in jdk1.3 it seems to be supported
(http://java.sun.com/j2se/1.3/docs/guide/intl/encoding.doc.html). I
downladed the international jre for jdk1.3.1_13 but I still get the encoding
not supported error:
STUART$java -version
java version "1.3.1_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_13-b03)
Java HotSpot(TM) Client VM (build 1.3.1_13-b03, mixed mode)
Here is the error I am getting:
org.jdom.input.JDOMParseException: Error on line 0: The encoding "MS950" is
not
supported.
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:468)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:810)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:789)
...
Do I need to do something in order to 'enable' the internation support? I
opened the i18n.jar and inside could see a class called
CharToByteMS950.class.
Also is there a way of disabling the encoding check (basically just ignore
this field and parse the rest of the document)?
Regards,
Stuart
More information about the jdom-interest
mailing list