jsp中url传递中文参数乱码的暂时解决方案

在页面js中:


name_type=encodeURI(name_type);


后台java程序解码:


name_type = new String(name_type.getBytes("iso-8859-1"), "utf-8");

猜你喜欢

转载自blog.csdn.net/w33365/article/details/8859072