Lately I have had several users report that their XML parsers are getting exceptions related to codepage mismatch. One example, below, the Crimson parser doesn't like the codepage as defined in the dtd. The code page in the document says "ISO-8859-1"; Crimson wants Cp1252.

"Warning at (file null, line 1, char -1): org.apache.crimson.parser/P-061
ISO-8859-1 Cp1252
Exception Message: Fatal Error at (file null, line 2, char -1):
org.apache.crimson.parser/P-055 envelopeRules.dtd

All this user did was move the document from one machine to another. As with all unsightly bugs, the parser runs fine on the first machine.

BTW, this isn't related just to Crimson. I've seen similar reports from other Java/XML parsers.

Is this because the codepage is not loaded on his apache machine?

Should I specify a more generic code page? Presently it's ISO-8859-1, which I thought was as generic as codepages get.

Any help and tips would be appreciated.

Joe McVerry


-- ----------- Joseph R. McVerry, President American Coders Ltd. POBox 97462 Raleigh, NC 27624 USA 919.846.2014 (voice/fax) http://www.americancoders.com Home Of OBOE - an EDI and EDI/XML Translator and xBaseJ - xBase Database Engine For Java




_______________________________________________ Juglist mailing list [EMAIL PROTECTED] http://trijug.org/mailman/listinfo/juglist_trijug.org

Reply via email to