public static String decode (String s, String enc) throws UnsupportedEncodingException

Decodes a application/x-www-form-urlencoded string using a specific encoding scheme. The supplied encoding is used to determine what characters are represented by any consecutive sequences of the form " %xy".

Note: The World Wide Web Consortium Recommendation states that UTF-8 should be used. Not doing so may introduce incompatibilities.

Parameters:
s    the String to decode
enc    The name of a supported character encoding.

Returns:  the newly decoded String

Exceptions:
UnsupportedEncodingException     If character encoding needs to be consulted, but named character encoding is not supported

See also:
URLEncoder.encode(java.lang.String, java.lang.String)

Since:  1.4