You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Apache Wiki <wi...@apache.org> on 2008/06/23 21:09:36 UTC

[Tomcat Wiki] Update of "Tomcat/UTF-8" by markt

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification.

The following page has been changed by markt:
http://wiki.apache.org/tomcat/Tomcat/UTF-8

The comment on the change is:
Remove inaccurrate statement

------------------------------------------------------------------------------
  %> }}}
  
  2.
- In the Catalina.bat (windows) catalina.sh (windows)
- apache$jakarta_config.com (OpenVMS), file there must be a switch added to
- the call to java.exe.  In LINUX (FC5), use /etc/tomcat5/tomcat5.conf and update the JAVA_OPTS switch.
- The switch is:
- 
- -Dfile.encoding=UTF-8
- 
- I cannot find documentation for this environment variable anywhere or what
- it actually does but it is essential.
- 
- 3.
  For translation of inputs coming back from the browser there must be a
  method that translates from the browser's ISO-8859-1 to UTF-8.  ISO-8859-1
  is the default character encoding for servers and browsers according to the
@@ -64, +53 @@

  
  '''Alternative solution'''
  
- The solution suggested above works fine with steps (1) and (2) only, but from the architecture perspective the correct way is to add a filter to the Tomcat that will do necessary correction for the application deployed without any additional changes to the rest of the code.
+ The solution suggested above works, but from the architecture perspective the correct way is to add a filter to the Tomcat that will do necessary correction for the application deployed without any additional changes to the rest of the code.
  
  1. Make sure JSP header is set as suggested:
  {{{

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org