前臺jsp 提交需要兩次encodeURI處理中文參數
$.pdialog.open("goUserEmployeeDetail.jhtml?userinfo.name="+encodeURI(encodeURI('中國'))+"&userinfo.mobile="+umobile+"&userinfo.wxId="+ uwxid, "addType",
"添加角色", {
"height" : "400",
"width" : "500",
"max" : false,
"mask" : true,
"minable" : false,
"maxable" : false
});
後臺需要
String loginName = java.net.URLDecoder.decode(‘中國’,"UTF-8");
處理