URL encoding: Difference between revisions
PascalABC.NET
Langurmonkey (talk | contribs) |
(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}}==
|