08-01
22
Character decoding failed. Parameter skipped.java.io.CharConversionException: isHexDigit.
作者:Java伴侣 日期:2008-01-22
做ajax传递参数的时候遇到这个异常,在网上找了N天的东西,还是没找到答案,原来我一直没发现原来是 escape带来的错误。我是这样写的
var url = "b.jsp?name=" + escape(u_name);
服务端获取:
String name=request.getParameter("name");
name=new String(name.getBytes("iso-8859-1"));
System.out.println(name);
结果老是报错:org.apache.tomcat.util.http.Parameters processParameters
var url = "b.jsp?name=" + escape(u_name);
服务端获取:
String name=request.getParameter("name");
name=new String(name.getBytes("iso-8859-1"));
System.out.println(name);
结果老是报错:org.apache.tomcat.util.http.Parameters processParameters
Tags: isHexDigit AJAX escape