ajax / encoding special characters,and decoding it on the server side
Hello everybody,
I have a problem. I'm working on a web application, using struts, and ajax functions, running on websphere. I have difficulties to transmit special characters (in the 128-159 range, for instance the euro character _ unicode u20AC) to the server, ONLY when they are transmitted via ajax functions.
The enctype of the jsp is ISO-8859-15.
I first tried the javascript escape() method,but websphere was unable to parse the transmitted values, because what is received is %u20AC for the euro character : the % character is indeed not encoded.
In a second time I have tried the javascript encodeURIComponent() method. For the euro character, it gives me %25u20AC; consequently Websphere is able to parse it.
My question is : how to decode it in java ?
Thanks a lot for any answers, and sorry for my poor english !

