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 Christopher Ebert <ce...@pocketthis.com> on 2002/01/17 19:11:06 UTC

Argh. The encoding "ISO-8859-1" is not supported. With a fix...

	I've been getting the above error message from the parser. The
XML was OK, everything should have worked but didn't. I re-compiled
xerces to print the stack trace of all the UnsupportedEncodingExceptions
and discovered that the VM I'm using (Microsoft. Bleah.) is old enough
that the name of the encoder (sun.io.ByteToCharISO8859_1.class) has a
different name (leave out the 'ISO'), so the 'java encoding' string
handed to the constructor of InputStreamReader didn't work.
	I extracted the new encoder from a 1.3 rt.jar, put it into a jar
file, added the jar to my classpath and everything worked. A little ugly
but it works.

	Chris

P.S. I tried the FAQ (none for this list?) and the archives (not
available, at least to me...) so I hope this isn't redundant.

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