Details
Description
UrlEncoded.decodeString reads:
char c = encoded.charAt(offset+i);
if (c<0||c>0xff)
throw new IllegalArgumentException("Not encoded");
MSIE7, however, doesn't seem to encode the localized characters in the URL, but it still econdes the special characters (e.g. space). This leads to the following problem:
if we use a localized symbols in the URL without a space, everything works,
but when we use a localized symbols and special symbols together (e.g. using a space to separate the words)
then UrlEncoded.decodeTo says the URL is "encoded" and so UrlEncoded.decodeString throws an exception.
java.lang.IllegalArgumentException: Not encoded
at org.mortbay.util.UrlEncoded.decodeString(UrlEncoded.java:617)
at org.mortbay.util.UrlEncoded.decodeTo(UrlEncoded.java:226)
at org.mortbay.jetty.EncodedHttpURI.decodeQueryTo(EncodedHttpURI.java:123)
at org.mortbay.jetty.Request.extractParameters(Request.java:1409)
at org.mortbay.jetty.Request.getParameter(Request.java:765)
MSIE is rubbish!
Can you send me an actual example of a URL in this mixed mode.
Can you confirm the localized characters are being sent in UTF-8?
thanks