[Tomcat] Issues with usernames containing special characters

By default, Tomcat uses ISO-8859-1 character encoding when decoding URL received from a browser. This can cause problems if you use international characters in username when creating a user.

To avoid issues with special characters:

  • Stop Tomcat
  • Go in the Tomcat directory
  • Edit conf/server.xml and find the line where the Coyote HTTP Connector is defined. It will look something like this, possibly with more parameters:
    <Connector port="8080"/>
  • Add a URIEncoding="UTF-8" property to the connector:
    <Connector port="8080" URIEncoding="UTF-8"/>
  • Save and close the file
  • Restart Tomcat
Setup & maintenance
Views: 119