Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Set URIEncoding="UTF-8" on your <Connector> in server.xml
  2. Wiki Markup
    Use a \[#Q3 character encoding filter\] with the default encoding set to UTF-8
  3. Change all your JSPs to set the correct Content-Type (use <%@page cotnentType="mime/type; charset=UTF-8" %>)
  4. Change all your servlets to set the content type for responses to UTF-8
  5. Change any content-generation libraries you use (Velocity, Freemarker, etc.) to use UTF-8 as the content type
  6. Disable any valves or filters that may read request parameters before your character encoding filter or jsp page has a chance to set the encoding to UTF-8. For more information see http://www.mail-archive.com/users@tomcat.apache.org/msg21117.html.

Why does everything have to be this way?

...