[jdom-interest] encoding="MS950"
Stuart
stuart at truetel.com
Mon Nov 22 22:50:58 PST 2004
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