第一种方法:
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");