javaeclipsetomcatutf-8uriencoding

Tomcat URIEncoding="UTF-8" in eclipse tomcat setting page


I have eclipse neon which is working correctly with Apache Tomcat 7, and now I want to set URIEncoding="UTF-8" for tomcat's connector. But each time eclipse publishes the project, it will rewrite the server.xml file and deletes my configurations.

I wanted to find a way to set URIEncoding="UTF-8" in eclipse tomcat settings page. There is an option in launch configuration (in tomcat settings page) in common tab as Encoding and I set it to UTF-8, but it is not working too.

Thanks in advance.


Solution

  • In {workspace}/Servers you will find a folder for every Tomcat configuration, containing several configuration files, including the server.xml. There you then can edit the file directly.

    To get changes taken into account restart Eclipse.