设置编码的代码:response.setCharacterEncoding("utf-8");response.setContentType("text/html,charset=utf-8");运行之后只有不是UTF-8编码就可以正常显示中文,比如gb2313和GBK