railo.commons.net
Class URLDecoder
java.lang.Object
railo.commons.net.URLDecoder
public class URLDecoder
- extends Object
decode
public static String decode(String str,
boolean force)
- Parameters:
string
-
- Returns:
decode
public static String decode(String s,
String enc,
boolean force)
throws UnsupportedEncodingException
- Decodes a
application/x-www-form-urlencoded
string using a specific
encoding scheme.
The supplied encoding is used to determine
what characters are represented by any consecutive sequences of the
form "%xy
".
Note: The
World Wide Web Consortium Recommendation states that
UTF-8 should be used. Not doing so may introduce
incompatibilites.
- Parameters:
s
- the String
to decodeenc
- The name of a supported
character
encoding.force
- if set to false Railo only encodes when there is at least one "%<2-digit-hex-value>" in string, means string with only + inside are not encoded
- Returns:
- the newly decoded
String
- Throws:
UnsupportedEncodingException
- See Also:
URLEncoder.encode(java.lang.String, java.lang.String)
Copyright © 2012 Railo