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 "Voytenko, Dimitry" <dv...@sectordata.com> on 2003/01/20 21:10:05 UTC

RE: org.xml.sax.SAXException: The encoding "ASCII" is not suppor ted

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@metalab.unc.edu]
Sent: Monday, January 20, 2003 07:02
To: xerces-j-user@xml.apache.org
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@metalab.unc.edu | 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@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


_____________________________________________________
Sector Data, LLC, is not affiliated with Sector, Inc., or SIAC

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