private String decodeWhile(final String s) { String result = s; try { result = URLDecoder.decode(result, Smartly.getCharset()); while (result.contains("%")) { try { result = URLDecoder.decode(result, Smartly.getCharset()); } catch (Throwable ignored) { break; } } } catch (UnsupportedEncodingException ignored) { } return result; }
public String decode(final String s) { try { return URLDecoder.decode(s, Smartly.getCharset()); } catch (UnsupportedEncodingException ignored) { } return s; }