AutoIt
AutoIt
StringBuilder GetEncoded
Demonstrates the Chilkat StringBuilder GetEncoded method.Chilkat AutoIt Downloads
Local $s = "The quick brown fox jumps over the lazy dog"
$oSb = ObjCreate("Chilkat.StringBuilder")
$oSb.Append($s)
; output: The quick brown fox jumps over the lazy dog
ConsoleWrite($oSb.GetAsString() & @CRLF)
; Get the string encoded to base64, without changing the contents of sb.
; output: VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZw==
ConsoleWrite($oSb.GetEncoded("base64","utf-8") & @CRLF)
; The contents of sb are not changed..
; output: The quick brown fox jumps over the lazy dog
ConsoleWrite($oSb.GetAsString() & @CRLF)