response.setContentType("text/html;utf8");
response.setCharacterEncoding("utf8");
PrintWriter out = response.getWriter();
要在输出流之前设置好格式
response.setContentType("text/html;utf8");
response.setCharacterEncoding("utf8");
PrintWriter out = response.getWriter();
要在输出流之前设置好格式