Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 public String decode(final String s) {
   try {
     return URLDecoder.decode(s, Smartly.getCharset());
   } catch (UnsupportedEncodingException ignored) {
   }
   return s;
 }