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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to