1 response.setHeader("Content-type", "text/html;charset=UTF-8"); 2 response.setCharacterEncoding("UTF-8");
使用这两行代码就可以了