ResourceUtils { public static String decode(String str) { String decoded; try { decoded = URLDecoder.decode(str, "UTF-8"); } catch (UnsupportedEncodingException e) { throw new MobiException(e); } return decoded; }  static String encode(String str); static String encode(Resource resource); static String decode(String str); static Resource decode(String str, ValueFactory vf);  }
@Test public void decodeTest() throws Exception { String test = "%3A%2F%23%3F%3D%26%20%2B%3B%22%7B%5B%7D%5D%40%24%25%5E%09"; assertEquals(":/#?=& +;\"{[}]@$%^\t", ResourceUtils.decode(test)); }