public static String urlFormDecode ( final String s ) { if ( StringUtils . isBlank ( s ) ) { LOG . warn ( "Could not encode blank string" ) ; throw new IllegalArgumentException ( "Blank string" ) ; } try { return URLDecoder . decode ( s , "UTF-8" ) ; } catch ( final UnsupportedEncodingException e ) { LOG . error ( "Could not encode: " + s , e ) ; return s ; } }
Returns a string that has been decoded .