response.setContentType(“text/html;charset=UTF-8;pageEncoding=UTF-8”);这个要在servlet的方法中的第一行,你先进行response的转换就可以了,改成response.setContentType(“text/html;charset=UTF-8;pageEncoding=UTF-8”);//放到这PrintWriter out=response.getWriter();//从这里response.setCharacterEncoding(“UTF-8”);out.println(“”);out.println(“
“);out.println(“Simple servlet”);out.println(“中国”);out.println(” “);