Ankan Priya Ankan Priya - 9 months ago 42
Java Question

Conversion from UTF-8 to actual character in java

I am sending a parameter string value, a french character "รง", to my web service in JAVA thorough GET method. In java, it is shown in UTF-8 encoded form as %C3%A7.

How can I convert it back to the same french character during the execution itself?

Answer Source

Tha answer you nned is the one liked by @Joe; you need to "convert" the query string:

String result =, "UTF-8");

It's not a matter of UTF-8 econding, rather a url enconding one.

A side note: in the comments you stated that you are passing the data via GET, if the semantic of the web service is to modify the data I suggest to use the POST method.