You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Robert Houben <Ro...@fusionware.net> on 2004/11/23 18:38:16 UTC

RE: encoding "MS950" not supported

If you go to this link:
http://www.jdom.org/pipermail/jdom-interest/2004-November/014348.html
it seems to suggest that there are a us-only and international version
of the jdk.  Only the latter includes the full set of encodings. 

-----Original Message-----
From: Stuart [mailto:stuart@truetel.com] 
Sent: Wednesday, November 24, 2004 1:19 AM
To: xerces-j-user@xml.apache.org
Subject: encoding "MS950" not supported

Hi,

I am trying to parse the following XML file using the apache xml parser:

	<?xml version="1.0" encoding="MS950"?>
	<VxmlConfig eventThreads="100" documentDir="./tmp/vxml/"
rmiPort="5555">
		<NumberMapping number="7933105" url="./calc.vxml"/>
		<NumberMapping number="888" url="./helloWorld.vxml"/>
	</VxmlConfig>

However I keep getting the following exception:

	org.xml.sax.SAXParseException: The encoding "MS950" is not
supported

I have checked that the jdk I am using (jdk1.4) supports this encoding
format
(http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html).
Also the following simple program works:

			String test = "hello";
			byte[] bytes = test.getBytes("MS950");

I have tried running the parser on a Chinese version of windows but it
still
did not work.

Please help!  Any suggestions would be much appreciated.  Is this a
problem
with the parser, my jdk or my os?

Thanks,

Stuart



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org