J
John Smith
I have an application that is sending an ajax request to the server and
encoding a text field into the url using escape(). If the field contains a
euro character ? escape encodes it to "%u20AC", tomcat on the server side
fails with the stack trace below. I have made sure both the request and
response are utf-8 encoded, but it does not fix it, any ideas?
Many Thanks
Jon
org.apache.tomcat.util.http.Parameters processParameters
WARNING: Parameters: Character decoding failed. Parameter skipped.
java.io.CharConversionException: isHexDigit
at org.apache.tomcat.util.buf.UDecoder.convert(Unknown Source)
at org.apache.tomcat.util.buf.UDecoder.convert(Unknown Source)
at org.apache.tomcat.util.http.Parameters.urlDecode(Unknown Source)
at org.apache.tomcat.util.http.Parameters.processParameters(Unknown
Source)
at org.apache.tomcat.util.http.Parameters.processParameters(Unknown
Source)
at
org.apache.tomcat.util.http.Parameters.handleQueryParameters(Unknown Source)
at org.apache.catalina.connector.Request.parseParameters(Unknown
Source)
at org.apache.catalina.connector.Request.getParameter(Unknown Source)
at org.apache.catalina.connector.RequestFacade.getParameter(Unknown
Source)
encoding a text field into the url using escape(). If the field contains a
euro character ? escape encodes it to "%u20AC", tomcat on the server side
fails with the stack trace below. I have made sure both the request and
response are utf-8 encoded, but it does not fix it, any ideas?
Many Thanks
Jon
org.apache.tomcat.util.http.Parameters processParameters
WARNING: Parameters: Character decoding failed. Parameter skipped.
java.io.CharConversionException: isHexDigit
at org.apache.tomcat.util.buf.UDecoder.convert(Unknown Source)
at org.apache.tomcat.util.buf.UDecoder.convert(Unknown Source)
at org.apache.tomcat.util.http.Parameters.urlDecode(Unknown Source)
at org.apache.tomcat.util.http.Parameters.processParameters(Unknown
Source)
at org.apache.tomcat.util.http.Parameters.processParameters(Unknown
Source)
at
org.apache.tomcat.util.http.Parameters.handleQueryParameters(Unknown Source)
at org.apache.catalina.connector.Request.parseParameters(Unknown
Source)
at org.apache.catalina.connector.Request.getParameter(Unknown Source)
at org.apache.catalina.connector.RequestFacade.getParameter(Unknown
Source)