2013年10月5日星期六

How to solve the problem of garbled

struts2 Background ajax submitted to the action of Chinese garbled
------ Solution ------------------------------ --------------
String handling garbled handling online a lot of search

But what server you are using

tomcat which can be configured to look
------ Solution ------------------------------- -------------
struts , then submit a post on it , do not use get, get , then had to decode
------ Solution ----- ---------------------------------------
<% @ page language = "java" import = "java.util. *" pageEncoding = "UTF-8"%>
------ Solution -------- ------------------------------------
solve javaWEB development process backstage reception Chinese information garbled
http://blog.csdn.net/rzleilei/article/details/10019527

------ Solution ------------------------------------ --------
in struts2 configure Unicode , you can avoid the distortion of the situation , when doing ajax custom character encoding

没有评论:

发表评论