You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Steve Cohen <sc...@javactivity.org> on 2008/09/08 20:38:16 UTC
Language/Locale processing within Tomcat
I've just realized I have a problem with my application running in
Tomcat related to Spanish-language text input by the users.
When running my application on an Ubuntu 7.10 platform, I have no
problems with Spanish language characters. When I run the same
application on the production RHEL 5 platform, I can see mangling of the
accented characters in my log file and downstream at various points.
Yet both platforms report
LANG=en_US.UTF-8
Where else do I need to look?
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Language/Locale processing within Tomcat
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Steve,
Steve Cohen wrote:
> I've just realized I have a problem with my application running in
> Tomcat related to Spanish-language text input by the users.
> When running my application on an Ubuntu 7.10 platform, I have no
> problems with Spanish language characters. When I run the same
> application on the production RHEL 5 platform, I can see mangling of the
> accented characters in my log file and downstream at various points.
>
> Yet both platforms report
>
> LANG=en_US.UTF-8
>
>
> Where else do I need to look?
You should probably check to see what your URIEncoding is on your
<Connector> element. Basically, the JVM's default file encoding (and the
LANG environment variable) do little to affect encoding used by
servlets, etc.
I recommend switching /everything/ to UTF-8. Check out this page on
Tomcat's Wiki: http://wiki.apache.org/tomcat/Tomcat/UTF-8
That should give you a good starting point.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkjJQFsACgkQ9CaO5/Lv0PBn7ACffFbEHsB+X64NcA/feGun71Q6
rSMAn3pQVspBJgOPh+5AmWKWyct8Gpse
=TTSF
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org