I am receiving a string that is not properly encoded like mystring%201, where must be mystring 1. How could I replace all characters that could be inte
I am receiving a string that is not properly encoded like "mystring%201
Well this string is already encoded, you have to decode:
String sDecoded = URLDecoder.decode("mystring%201", "UTF-8");
so now sDecoded must have the value of "mystring 1".
String sEncoded = URLEncoder.encode("mystring 1", "UTF-8");
sEncoded must have the value of "mystring%201"