Difference between revisions of "Url decode"

From Kolmafia
Jump to navigation Jump to search
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={{#…')
 
imported>Bale
(cats)
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
FunctionPage|
 
FunctionPage|
 
name={{#var:name}}|
 
name={{#var:name}}|
function_category=String Handling Routines|
 
  
 
function1={{Function|
 
function1={{Function|
Line 20: Line 19:
 
needscode=yes|
 
needscode=yes|
  
see_also={{SeeAlso|to_url|url_encode}}|
+
see_also={{SeeAlso|to_url|url_encode|entity_encode|entity_decode}}|
 
more_info=See the w3c page [http://www.w3schools.com/tags/ref_urlencode.asp here] for more info.|
 
more_info=See the w3c page [http://www.w3schools.com/tags/ref_urlencode.asp here] for more info.|
 
special=String converted by this function can be returned to their original form with [[url_encode|url_encode()]].|
 
special=String converted by this function can be returned to their original form with [[url_encode|url_encode()]].|
 
}}
 
}}
 +
 +
[[Category:String Handling Routines]] [[Category:Relay Browser Functions]]

Latest revision as of 08:32, 20 November 2014

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() | entity_encode() | entity_decode()

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().