RosettaCodeData/Task/URL-decoding/00DESCRIPTION

10 lines
665 B
Text
Raw Permalink Normal View History

2016-12-05 22:15:40 +01:00
This task   (the reverse of   [[URL encoding]]   and distinct from   [[URL parser]])   is to provide a function
2015-02-20 00:35:01 -05:00
or mechanism to convert an URL-encoded string into its original unencoded form.
2013-04-11 01:07:29 -07:00
2016-12-05 22:15:40 +01:00
;Test cases:
* &nbsp; The encoded string &nbsp; "<code><nowiki>http%3A%2F%2Ffoo%20bar%2F</nowiki></code>" &nbsp; should be reverted to the unencoded form &nbsp; "<code><nowiki>http://foo bar/</nowiki></code>".
2015-11-18 06:14:39 +00:00
2016-12-05 22:15:40 +01:00
* &nbsp; The encoded string &nbsp; "<code><nowiki>google.com/search?q=%60Abdu%27l-Bah%C3%A1</nowiki></code>" &nbsp; should revert to the unencoded form &nbsp; "<code><nowiki>google.com/search?q=`Abdu'l-Bahá</nowiki></code>".
<br><br>