前台传值到后台乱码问题

 

url:'ldCustomerProgressController.do?doAddjinzhan&cusId='+encodeURI(encodeURI(cusId))+'&progressTime='+encodeURI(encodeURI(progressTime))+'&content='+encodeURI(encodeURI(content))+'&pidType='+encodeURI(encodeURI(pidType))+'&time='+groupby+'&mytype='+mytype+'&warningDate=' + warningDate+'&urgentstate='+urgentstate,

 

String cusId = URLDecoder.decode(request.getParameter("cusId"),"UTF-8");
String progressTime = URLDecoder.decode(request.getParameter("progressTime"),"UTF-8");
String content = URLDecoder.decode(request.getParameter("content"),"UTF-8");
String pidType = URLDecoder.decode(request.getParameter("pidType"),"UTF-8");

 

上一篇:Python实现unescape解码JS(escape,encodeURI等方法)url编码字符串


下一篇:[JavaScript] 日常填坑