// 设置request与response的编码 response.setContentType("text/html"); request.setCharacterEncoding("GBK"); response.setCharacterEncoding("GBK");