I'm trying to parse some XML with a DOMParser, which contains special 
characters such as the English pound sign �.  For example, the following 
XML:

<?xml version="1.0" encoding="UTF-8"?>
<test>A string with a pound sign �</test>

The resultant parsed document contains rubbish characters.

I've tried changing the encoding from UTF-8 and the only one I've found I 
can use with a DOMParser is ISO-8859-1. I cannot change to any other type 
without getting the following error:

"org.xml.sax.SAXParseException: The encoding "UTF-16" is not supported."

If I try to replace this with &pound; I get entity reference problems.

How do I go about using fairly standard special characters?

Is there a way of determing which encodings are supported?

regards

Richard


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to