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 JSP:
<%@ 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รก is transferred from the JSP form back to the controller, and then back to JSP again: T%E
I am doing Google search hours, but cannot find the answer to this problem. Any help would be appreciated.
source share