1,在servlet中使用js提示框时,有时会出现中文乱码,加上这三句就好了
request.setCharacterEncoding("utf-8"); //1
response.setContentType("text/html;charset=utf-8"); //2
response.setCharacterEncoding("utf-8"); //3
2023-02-23 16:09:54
1,在servlet中使用js提示框时,有时会出现中文乱码,加上这三句就好了
request.setCharacterEncoding("utf-8"); //1
response.setContentType("text/html;charset=utf-8"); //2
response.setCharacterEncoding("utf-8"); //3