var flowName = encodeURI(encodeURI(data.name));//data.name为需要转码的字符串
跳转到另外一个页面后,直接在js中解码:
var flowName = decodeURI("${param.flowName}");
如果是在JAVA后端转码,转码方式:
String flowName = new String(java.net.URLDecoder.decode(request .getParameter("flowName"), "utf-8"));