UTF-8 encoding in Spring MVC, problem with FORMs -
i have in web.xml
<filter> <filter-name>encoding-filter</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>encoding-filter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
and @ top of file.jsp have this:
<%@ page pageencoding="utf-8" contenttype="text/html; charset=utf-8" %>
in <head>
this:
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
and characters other latin-1 set form method post still not correct.
i solved this.
that filter in web.xml must first filter in file.
Comments
Post a Comment