public class URLEncoder extends Object
application/x-www-form-urlencoded
MIME content type.
All characters except letters ('a'..'z', 'A'..'Z') and numbers ('0'..'9') and characters '.', '-', '*', '_' are converted into their hexadecimal value prepended by '%'. For example: '#' -> %23. In addition, spaces are substituted by '+'.
@Deprecated public static String encode(String s)
encode(String, String)
instead.encode(s, "UTF-8")
.public static String encode(String s, String charsetName) throws UnsupportedEncodingException
UnsupportedEncodingException