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
mystring%201
mystring 1
Looks like your string is partially URL-encoded, so... how about this:
try { System.out.println(URLDecoder.decode("mystring%201", "UTF-8")); } catch(UnsupportedEncodingException e) { e.printStackTrace(); }