Jump to content

URL encoding: Difference between revisions

PascalABC.NET
(PascalABC.NET)
Line 1,335:
version 2 uses constructs not supported by ooRexx:<br>
url.=; and $ as variable symbol
 
=={{header|PascalABC.NET}}==
<syntaxhighlight lang="delphi">
##
function URLEncode(s: string) := System.Uri.EscapeDataString(s);
 
Println(URLEncode('http://foo bar/'));
</syntaxhighlight>
{{out}}
<pre>
http%3A%2F%2Ffoo%20bar%2F
</pre>
 
=={{header|Perl}}==
246

edits

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