关于url传值出现乱码的问题记录

url=encodeURI(encodeURI(url)); //用2次encodeURI 
window.location = "<%=path%>/inner/line/line.jsp?"+url; 
服务器端的代码: 
String linename = request.getParameter(name); 
//java : 字符解码 
linename = java.net.URLDecoder.decode(linename , "UTF-8");


ok

你可能感兴趣的:(js,url,乱码,传值, )