Url 传递中文 加密

JavaScript

    var url = "xxx.jsp?op=expExcel&carrierState="+encodeURI(encodeURI(carrierState));
//注意要用双层

JSP

String carrierState = request.getParameter("carrierState");
java.net.URLDecoder.decode(carrierState,"utf-8");

你可能感兴趣的:(Url 传递中文 加密)