AutoIt
AutoIt
URL Encoding and Decoding
Demonstrates URL encoding/decoding using the HTTP convenience methods.Chilkat AutoIt Downloads
$oHttp = ObjCreate("Chilkat.Http")
Local $s = "Hello World! 100% sure."
Local $sEncoded = $oHttp.UrlEncode($s)
ConsoleWrite("URL encoded: " & $sEncoded & @CRLF)
; Space → %20
; ! → %21
; % → %25
Local $sDecoded = $oHttp.UrlDecode($sEncoded)
ConsoleWrite("URL decoded: " & $sDecoded & @CRLF)
; Output:
; URL encoded: Hello%20World%21%20100%25%20sure.
; URL decoded: Hello World! 100% sure.