String locationstr = req.getParameter("location");
String utf8locationstr=new String(locationstr.getBytes("ISO-8859-1"),"UTF-8"); // 解决href传入参数中含有中文,乱码的问题
href 传参中文乱码
最新推荐文章于 2020-12-25 19:50:31 发布
String locationstr = req.getParameter("location");
String utf8locationstr=new String(locationstr.getBytes("ISO-8859-1"),"UTF-8"); // 解决href传入参数中含有中文,乱码的问题