1 response.setHeader("Content-type", "text/html;charset=UTF-8"); 2 response.setCharacterEncoding("UTF-8");
使用这两行代码就可以了
1 response.setHeader("Content-type", "text/html;charset=UTF-8"); 2 response.setCharacterEncoding("UTF-8");
使用这两行代码就可以了
转载于:https://www.cnblogs.com/q2546/p/11220454.html