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