解决中文乱码,在web.xml中配置核心过滤器
方法一、手动编写中文乱码过滤器
[code="java"]
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
request.setCharacterEncoding("UTF-8...
原创
2012-03-21 17:39:24 ·
422 阅读 ·
0 评论