解决HttpServletResponse输出的中文乱码问题

设置response返回编码
response.setCharacterEncoding("UTF-8");
response.setHeader("Content-type", "text/html;charset=UTF-8");

猜你喜欢

转载自chuichuige.iteye.com/blog/2394510