public void doFilter(ServletRequest request, ServletResponse response,
FilterChain filterChain) throws IOException, ServletException {
request.setCharacterEncoding("UTF-8");
response.setCharacterEncoding("UTF-8");
filterChain.doFilter(request, response);
}
你把
request.setCharacterEncoding("UTF-8");
response.setCharacterEncoding("UTF-8");
改为
response.setContentType("text/htm;charset=utf-8");
看下可以不??