On 28-May-2009, at 15:59, George Sexton wrote:
The issue is the default character set for Java. I've noticed that
at least at one point in time, the default character set for Java
running under windows was Windows-1252. Running under Linux it
defaults to ISO-8859-1.
A few other things to ensure:
- If you are using JSPs ensure that the content header is correct:
<%...@page contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" %>
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.
- You can over-ride the default encoding used by the VM, by passing
the -Djava.encoding=UTF-8 option in catalina.bat
The default encoding under Linux actually depends on which
distribution you are
using. Red Hat for example defaults to UTF-8. In general you should
not make
any assumptions on which character encoding the OS is using. One
assumption
you can make is that Java uses UTF-16 internally.
André-John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org