I set CharacterEncodingFilter
as the first filter in my web.xml:
<filter>
<filter-name>encodingFilter</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>encodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
and in my JSPs this:
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" isELIgnored="false" %>
and this:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
But, for example, Tá
passed from a JSP form back to a controller and then back out to a JSP again becomes: T%E
I'm done hours of Google searches but can't find the answer to this problem. Any help would be appreciated.