response.setCharacterEncoding(“UTF-8”);
告诉客户端用什么编码
response.setHeader(“content-type”, “text/html;charset=UTF-8”);
上面两句能合成一句为:response.setContentType(“text/html;charset=UTF-8”)
httpservlet中文乱码问题
最新推荐文章于 2024-02-18 13:54:40 发布
response.setCharacterEncoding(“UTF-8”);
告诉客户端用什么编码
response.setHeader(“content-type”, “text/html;charset=UTF-8”);
上面两句能合成一句为:response.setContentType(“text/html;charset=UTF-8”)