Serlvet 输出中文

1 response.setHeader("Content-type", "text/html;charset=UTF-8"); 
2         response.setCharacterEncoding("UTF-8");

使用这两行代码就可以了

原文地址:https://www.cnblogs.com/q2546/p/11220454.html