public static String urlDecode ( String text ) { String urlEncodedString = text ; if ( text != null ) { try { urlEncodedString = URLDecoder . decode ( text , SpiUtil . UTF_8_ENCODING_NAME ) ; } catch ( UnsupportedEncodingException exception ) { throw new FaxException ( "Error while URL decoding text." , exception ) ; } } return urlEncodedString ; }
This function URL decodes the given text .