url encodeURI转中文




url   "javascript:top.location='/demo/reportJsp/showReport1.jsp?raq=/mm.raq&date1='+new Date().getTime()+'&ll='"+"+encodeURI(encodeURI('"+B2+"'))"

通过两次encodeURI后


后台通过 URLDecoder.decode两次转码后,才能转中文

String paramValue=request.getParameter(paramName);
   paramValue = URLDecoder.decode(paramValue,"utf-8");
   paramValue = URLDecoder.decode(paramValue,"utf-8");


你可能感兴趣的:(jsp,url,encodeURI,中文)