-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

André-John,

On 5/28/2009 7:23 PM, Andre-John Mas wrote:
> You can specify any encoding you wish, but this is the most
> universal encoding. If you don't specify the character encoding in
> the content-type most browsers will default to ISO-8859-1 as the
> specification requires.

It's the /server/ that defaults to using ISO-8859-1, not the browser.
The browser will simply do what it's told (unless it's MSIE, of course,
in which case it will do as it pleases).

> - You can over-ride the default encoding used by the VM, by passing
>   the -Djava.encoding=UTF-8 option in catalina.bat

Better to set this in bin/setenv.sh to keep your options separate from
the actual startup script.

> One assumption you can make is that Java uses UTF-16 internally.

True, but not really relevant. There is no "encoding" of a String.
Character encodings only come into play when you need to convert
characters to bytes.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkogpegACgkQ9CaO5/Lv0PD4lgCbBSEV0WAHYWIVpg5B+dUWsDAl
AToAoLcB5Hg3T4/33+t0yoNy0xlFqlfO
=siA+
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to