tomcat6 - URIEncoding not working on Tomcat 6.0.26 -
we working multiple languages , korean being 1 of them, in our application have set encoding both @ tomcat level , spring filter encoding, reason when request.getparameter in our struts2 action class receive ??.
tomcat encoding
<connector port="8080" protocol="http/1.1" connectiontimeout="20000" maxthreads="150" redirectport="8443" uriencoding="utf-8"/>
spring filter
<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>
edit
so message sent "안녕하세요 kkk" received "????? kkk"
what missing?
regards,
ayush
if labels in properties file, try force utf8 file encoding (check tomcat startup scripts):
on windows
set java_opts=%java_opts% -dfile.encoding=utf8on linux
export java_opts="$java_opts -dfile.encoding=utf8
i hope can :)
Comments
Post a Comment