RE: org.xml.sax.SAXException: The encoding "ASCII " is not suppor
ted 2003-01-20 - By Voytenko, Dimitry
Hi,
When US-ASCII encoding is specified Xerces should automatically use ISO-8859-1 (java encoding 8859_1), so it should work fine. This is IANA-Java encoding mapping specified in Xerces.
thanks
-----Original Message----- From: Elliotte Rusty Harold [mailto:elharo@(protected)] Sent: Monday, January 20, 2003 07:02 To: xerces-j-user@(protected) Subject: Re: org.xml.sax.SAXException: The encoding "ASCII" is not supported
At 3:23 PM +0100 1/20/03, Hermann Angstl wrote:
>Enable/disable validation doesn't change anything :(( >Does this really mean that the parser can't parse US-ASCII ?
Earlier version of Java did not recognize the encoding name "ASCII". You can try "US-ASCII" instead, but even that fails in 1.3 and earlier, possibly in 1.3, (I'd have to check the exact versions.) Best just to say "UTF-8". All ASCII documents are simultaneously legal UTF-8 documents. --
+-----------------------+------------------------+-------------------+ | Elliotte Rusty Harold | elharo@(protected) | Writer/Programmer | +-----------------------+------------------------+-------------------+ | Processing XML with Java (Addison-Wesley, 2002) | | http://www.cafeconleche.org/books/xmljava | | http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA | +----------------------------------+---------------------------------+ | Read Cafe au Lait for Java News: http://www.cafeaulait.org/ | | Read Cafe con Leche for XML News: http://www.cafeconleche.org/ | +----------------------------------+---------------------------------+
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
_____________________________________________________ Sector Data, LLC, is not affiliated with Sector, Inc., or SIAC
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|