Hello -

I'm trying to POST URL encoded form via XMLHttpRequest. When composing
the URL-encoded name--value pairs, I escape the value with
JavaScript's escape() function. When the form contains non-Latin
characters (Bulgarian letters for example), I get exception in
URLDecoder:

java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters
in escape (%) pattern - For input string: "u0"

The problem seems that non-Latin characters are encoded as "%uXXXX". I
found a forum thread [1] that completely matches my problem except
that they use regular, HTML form but I need data submitted via
XMLHttpRequest.

Have you seen such problem before?

Thank you in advance,
Svilen

[1] http://forum.java.sun.com/thread.jspa?threadID=434467&messageID=1948224

Reply via email to