At 19:00 -0500 on 07/22/2007, Kirk Wolf wrote about Re: JAVA SAX XML parser - GOTCHA!:

XML files can be in any number of code pages, according to the spec.
If the prolog does not specify the codepage, then the default is UTF-8.

Your best bet with JBOSS is to run it under JZOS specifying a default codepage of ISO8859-1.
This is done using the -Dfile.encoding property.

So long as your file is restricted to US-ASCII (x00-x7f codepoints), ISO-8859-1, UTF-8, and US-ASCII are all valid codepages for the file contents. It is only when you have codepoints in the x80-xff range that ISO-8859-1 and UTF-8 differ (and US-ASCII becomes invalid).

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to