public static String decode(String value, Charset charset) {
		try {
			return URLDecoder.decode(value, charset.name());
		}
		catch (UnsupportedEncodingException ex) {
			throw new IllegalArgumentException("Characterset is not supported.");
		}
	}
public static String decode ( String value , Charset charset ) { try { return URLDecoder . decode ( value , charset . name ( ) ) ; } catch ( UnsupportedEncodingException ex ) { throw new IllegalArgumentException ( "Characterset is not supported." ) ; } }
Uses URLDecoder to decode a application/x-www-form-urlencoded string, using the given Charset.