先转码后,再通过ajax进行传值
strKeyWord = $.trim($("#keyValue").val()); strKeyWord = encodeURI(encodeURI(strKeyWord));
java获取中 再进行转码操作
String strKeyWord = ParamUtil.getString(request,"strKeyWord","") ; strKeyWord = URLDecoder.decode(strKeyWord,"UTF-8");
先转码后,再通过ajax进行传值
strKeyWord = $.trim($("#keyValue").val()); strKeyWord = encodeURI(encodeURI(strKeyWord));
String strKeyWord = ParamUtil.getString(request,"strKeyWord","") ; strKeyWord = URLDecoder.decode(strKeyWord,"UTF-8");