解决URL传参乱码问题

来源:互联网 发布:电脑ie卸载软件 编辑:程序博客网 时间:2024/06/08 12:43
将接受的数据的编码格式转换为UTF-8,就可以正常显示

Jsp Code
 
String bantitle=newString(request.getParameter("bantitle").getBytes("ISO-8859-1"),"UTF-8");


原创粉丝点击