req.setCharacterEncoding("UTF-8");
resp.setCharacterEncoding("UTF-8");
resp.setHeader("content-type","text/html;charset=UTF-8");
有时候加上前两句还不行
resp.setHeader(“content-type”,“text/html;charset=UTF-8”);
这句帮您解决一切问题
req.setCharacterEncoding("UTF-8");
resp.setCharacterEncoding("UTF-8");
resp.setHeader("content-type","text/html;charset=UTF-8");
有时候加上前两句还不行
resp.setHeader(“content-type”,“text/html;charset=UTF-8”);
这句帮您解决一切问题