response.setCharacterEncoding("UTF-8");
response.setHeader("Content-Type","text/html;charset=UTF-8");
response.setContentType("text/html;charset=UTF-8");
response.getOutputStream().write(("{\"response\":{\"message\":\"success\",\"result\":\"success\",\"responseCode\":\"\",\"total\":\""+count+"\",\"data\":"+rtn+"}}").getBytes("UTF-8"));
Servlet中doGet方式访问输出乱码
最新推荐文章于 2021-11-22 16:14:56 发布