1. client: encodeURIComponent(para)
2. server: java.net.URLDecoder.decode(para, "UTF-8")
3. web.xml config
<filter>
<filter-name>Spring character 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>
</filter>
<filter-mapping>
<filter-name>Spring character encoding filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
二. 用form提交的处理乱码:
String str = new String(content.getBytes("ISO-8859-1"), "UTF-8");