response.setContentType("text/html;charset=utf-8");
将浏览器编码设置为utf-8,但依然乱码。
用response.setCharacterEncoding("utf-8")就可以了