|
[…]
We're having a weird problem with character encoding in a Tomcat
webapp.
[…]
On the Midrange box, the traffic between us and GMail is getting
garbled (Chinese characters appear, seemingly at random), with an
apparent character encoding conflict. On the Linux box, it isn't.
Not sure about the Windows box.
Now, on the Midrange box, it's a fairly straightforward process to
look at the Java System Properties for a JVM. For the JVM Tomcat is
running in, "Initial Java System Properties" shows
file.encoding 'ISO8859_1'and "Current Java System Properties" shows
os.encoding 'ISO8859-1'
sun.jnu.encoding 'ISO8859-1'
sun.io.unicode.encoding 'UnicodeBig'
ibm.system.encoding 'ISO8859-1'
file.encoding 'ISO8859_1'
I found JConsole and JVisualVM on the Linux box, and while I
couldn't find system properties in JConsole, I could in JVisualVM.
I have:
file.encoding=UTF-8
sun.jnu.encoding=UTF-8
sun.io.unicode.encoding=UnicodeLittle
Can somebody enlighten me on whether this is the cause of the
encoding issue with Google, and what to do about it?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.