Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] always about encoding (may be OT)

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Luca Passani <passani AT eunet.no>
  • To: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] always about encoding (may be OT)
  • Date: Tue, 31 May 2005 11:47:25 +0200

Wolfgang Hoschek wrote:

Might be a tomcat 4/5 configuration issue, might be any of many things. I don't recall the exact issue, but some time ago there was a great deal of confusion between different major and minor tomcat versions wrt. encodings and default encodings. Also consider the weird or nonsensical things that can happen when the HTTP encoding (or HTTP default encoding) does not match the XML encoding statet in the XML header, or the default XML encoding.

Try to progressively narrow the diffs between your setups down until you find the exact reason.

some interesting findings when analysing these two values::

getmethod.getRequestCharSet();
System.getProperty("file.encoding");

Windows:

encoding = ISO-8859-1
System property = Cp1252

Unix:

encoding = ISO-8859-1
System property = ISO646-US

I'll need to do some reading here when I'm done laughing about "write once, run anywhere" :)
If someone has suggestions that can help. please send them my way.

Thanks

Luca





Archive powered by MHonArc 2.6.24.

Top of Page