Url decode

From Kolmafia
Revision as of 15:25, 12 March 2010 by imported>StDoodle (Created page with '{{ #vardefine:name|url_decode}}{{ #vardefine:return_type|string}}{{ FunctionPage| name={{#var:name}}| function_category=String Handling Routines| function1={{Function| name={{#…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
needs(code_samples);

Function Syntax

string url_decode(string source )

  • source is the original to decode

Returns the "normal" version of the supplied source string with all URI-encoded escape sequences replaced with non-alphanumeric characters. For example, "+" characters are replaced with spaces and all instances of "%" followed by a two-digit (hexadecimal) character code are replaced with their corresponding non-alphanumeric characters.

See Also

to_url() | url_encode()

More Information

See the w3c page here for more info.

Special

String converted by this function can be returned to their original form with url_encode().