response.setHeader("Content-Type", "text/json; charset=UTF-8"); request.setCharacterEncoding("UTF-8"); response.setCharacterEncoding("UTF-8");
servlet中,这几行一定要放在Servlet最前面,要不然可能失效.
response.setHeader("Content-Type", "text/json; charset=UTF-8"); request.setCharacterEncoding("UTF-8"); response.setCharacterEncoding("UTF-8");
servlet中,这几行一定要放在Servlet最前面,要不然可能失效.