List of utility methods to do URL Decode
String | parseStringParamAndDecode(String inParam, String defaultVal, String charset) Parses and decodes and Sanitize the given inParam if (inParam == null) { return defaultVal; try { return parseStringParam(URLDecoder.decode(inParam, charset), defaultVal); } catch (UnsupportedEncodingException e) { return defaultVal; |
String | pathDecode(String path) path Decode if (path != null) { path = path.replace("+", "%2b"); path = URLDecoder.decode(path, "UTF-8"); return path; |
String | pathDecode(String path) path Decode return URLDecoder.decode(path, "UTF-8"); |
String | percentDecode(String encodedString, String messageEncoding) Percent decodes a string try { return URLDecoder.decode(encodedString, messageEncoding); } catch (UnsupportedEncodingException uee) { uee.printStackTrace(); return null; |
String | percentDecode(String str, boolean plusToSpace) Decodes strings that have been percent encoded. char[] buf = null; int count = 0; final int len = str.length(); for (int i = 0; i < len;) { char c = str.charAt(i); if (c == '%') { if (i + 2 >= len) { throw new IllegalArgumentException(); ... |
String | safeDecode(String s) safe Decode try { return URLDecoder.decode(s, "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); return s; |
String | unescape(String s) unescape UTF8/URL encoded strings try { return URLDecoder.decode(s, "UTF-8"); } catch (Exception e) { return s; |
String | unescape(String string) Does a URL decoding of the string .
return unescape(string, '%'); |
String | unescape(String theString) unescape if (theString == null) { return null; for (int i = 0; i < theString.length(); i++) { char nextChar = theString.charAt(i); if (nextChar == '%' || nextChar == '+') { try { return URLDecoder.decode(theString, "UTF-8"); ... |
String | urlDecode(String s) This utility method is for converting from a MIME format called " x-www-form-urlencoded " to a String To convert to a
|