URL encoding: Difference between revisions

→‎{{header|AutoHotkey}}: AutoHotkey example added
m (promoted to task)
(→‎{{header|AutoHotkey}}: AutoHotkey example added)
Line 32:
[[Category:String manipulation]]
 
=={{header|AutoHotkey}}==
<lang AutoHotkey>rawURL = http://foo bar/
SetFormat, Integer, Hex
Loop Parse, rawURL
If A_LoopField is not alnum ; not a-zA-Z0-9
encURL .= "%" . SubStr(Asc(A_LoopField), 3)
else encURL .= A_LoopField
MsgBox % encURL</lang>
=={{header|AWK}}==
<lang awk>BEGIN {