public class RFC2396UrlDecoder extends Object
public static String encode(String s)
x-www-form-urlencoded format.s - String to be translated.String.public static String decode(String uri)
Interprets %XX (where XX is hexadecimal number) as UTF-8 encoded bytes.
The validity of the input path is not checked (i.e. characters that were not encoded will not be reported as errors).
This method differs from URLDecoder.decode in that it always uses UTF-8 (while URLDecoder uses the platform default encoding, often ISO-8859-1), and doesn't translate + characters to spaces.
uri - the path to decodeCopyright © 2016. All Rights Reserved.