传值出现中文乱码问题

第一种方法:

String XSXM = new String(request.getParameter("name").getBytes("ISO-8859-1"),"UTF-8");

第二种方法:

window.showModalDialog('inputAppByTopten.action?jgid='+jgid+'&xn='+xn+'&xm='+encodeURI(encodeURI(xm)),window,'dialogWidth:1024px;dialogHeight:768px');

String xm = request.getParameter("xm");

xm = URLDecoder.decode(xm,"UTF-8");

国泰民安
原文地址:https://www.cnblogs.com/jirglt/p/2543102.html