在jsp编程中遇到中文乱码
出现?????这样的字符
在servlet类中的方法中加上下面的代码就可以了
request.setCharacterEncoding("utf-8"); response.setContentType("text/html; charset=utf-8"); response.setCharacterEncoding("utf-8");
教训:遇事冷静分析
在jsp编程中遇到中文乱码
出现?????这样的字符
在servlet类中的方法中加上下面的代码就可以了
request.setCharacterEncoding("utf-8"); response.setContentType("text/html; charset=utf-8"); response.setCharacterEncoding("utf-8");
教训:遇事冷静分析