使用struts时有时设置了字符过滤器或者覆盖process方法也没用,可以用这样的办法解决在每个JSP页面中设置:response.setCharacterEncoding("gb2312");request.setCharacterEncoding("gb2312");