public static String decode(final String escaped) throws URIException {
  try {
    final byte[] rawdata=URLCodec.decodeUrl(EncodingUtil.getAsciiBytes(escaped));
    return EncodingUtil.getString(rawdata,URI.getDefaultProtocolCharset());
  }
 catch (  final DecoderException e) {
    throw new URIException(e.getMessage());
  }
}

public static String decode ( final String escaped ) throws URIException { try { final byte [ ] rawdata = URLCodec . decodeUrl ( EncodingUtil . getAsciiBytes ( escaped ) ) ; return EncodingUtil . getString ( rawdata , URI . getDefaultProtocolCharset ( ) ) ; } catch ( final DecoderException e ) { throw new URIException ( e . getMessage ( ) ) ; } }
unescape and decode a given string regarded as an escaped string with the default protocol charset .
