utf 8 - Spring mvc form not reading some character sequence -


i have implemented basic spring mvc form. now, able read special characters @#$%^&* there few things missing like, if type "..........", reads "?.." or not reading text between < , > characters. googled out find out solution , seems spring mvc default not follow utf-8 pattern. so, appended following code in web.xml

           <filter>    <filter-name>springcharacterencodingfilter</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> 

i using

      <meta http-equiv="content-type" content="text/html; charset=utf-8"> 

in page. also, in server.xml using

    <connector port="8009" protocol="ajp/1.3" redirectport="8443" uriencoding="utf-8"/> 

but problem still there. can suggest me missing out or there other cause of problem?

i got solution finally...you need use

    <%@ page language="java" contenttype="text/html; charset=utf-8" pageencoding="iso-8859-1"%> 

instead of

   <%@ page language="java" contenttype="text/html; charset=iso-8859-1" pageencoding="iso-8859-1"%> 

in jsp files.


Comments

Popular posts from this blog

design - Custom Styling Qt Quick Controls -

Unable to remove the www from url on https using .htaccess -