Jump to content

URL decoding: Difference between revisions

PascalABC.NET
(PascalABC.NET)
Line 1,303:
mailto:"Irma User" <irma.user@mail.com>
</pre>
 
=={{header|PascalABC.NET}}==
<syntaxhighlight lang="delphi">
uses System;
 
function URLDecode(s: string) := Uri.UnescapeDataString(s);
begin
Println(URLDecode('http%3A%2F%2Ffoo%20bar%2F'));
Println(URLDecode('google.com/search?q=%60Abdu%27l-Bah%C3%A1'));
Println(URLDecode('%25%32%35'));
end.
</syntaxhighlight>
{{out}}
<pre>
http://foo bar/
google.com/search?q=`Abdu'l-Bahá
%25
</pre>
 
 
=={{header|Perl}}==
256

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.