We are on a production server which uses Tomcat 7, and for whatever reason, the administrators refrain from setting the CATALINA_OPTS="-Dfile.encoding=UTF-8"
workaround for us.
This means that now when deploying the WAR file, Tomcat returns garbled characters instead of their Unicode counterparts.
We have also included this in our web.xml
, to no avail:
<filter>
<filter-name>encoder</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>encoder</filter-name>
<url-pattern>*</url-pattern>
</filter-mapping>
How do we manage this without sending a man to breach into the server room and modify the configuration?