在Servlet或者是拦截器里面添加下面的语句:
request.setCharacterEncoding("utf-8");
response.setCharacterEncoding("utf-8");
response.setContentType("text/html;charset=UTF-8");
2023-02-23 12:31:11
在Servlet或者是拦截器里面添加下面的语句:
request.setCharacterEncoding("utf-8");
response.setCharacterEncoding("utf-8");
response.setContentType("text/html;charset=UTF-8");