is there a class to encode a generic String
following the RFC 3986 specification?
That is: "hello world"
=> "hello%20world"
Not (RFC 1738): "hello+world"
Thanks
If it's a url, use URI
URI uri = new URI("http", "//hello world", null);
String urlString = uri.toASCIIString();
System.out.println(urlString);