在response.getWriter().write();的前面输入 response.setContentType("text/html;charset=GBK"); response.setContentType("text/html");