- Index
- »
- axon
- »
- func:uriDecode
def
func:uriDecode
uriDecode(val, checked: true)
Parse an ASCII percent encoded string into a Uri according to RFC 3986. All %HH escape sequences are translated into octects, and then the octect sequence is UTF-8 decoded into a Str. The +
character in the query section is unescaped into a space. If checked if true then throw ParseErr if the string is a malformed URI or if not encoded correctly, otherwise return null. Use parseUri()
to parse from standard form. See Uri
for a detailed discussion on standard and encoded forms.
Examples:
"foo bar".parseUri >> `foo bar` "foo%20bar".uriDecode >> `foo bar`