AutoIt
AutoIt
HTML Entity Encode and Decode in StringBuilder
Demonstrates HTML encoding and decoding the contents of a StringBuilder.Chilkat AutoIt Downloads
$oSb = ObjCreate("Chilkat.StringBuilder")
Local $s = "< é ü ç Ω Hello & World ✓ >"
$oSb.Append($s)
$oSb.Encode("html","utf-8")
ConsoleWrite($oSb.GetAsString() & @CRLF)
; Output:
; < é ü ç Ω Hello & World ✓ >
; To decode:
$oSb.Decode("html","utf-8")
ConsoleWrite($oSb.GetAsString() & @CRLF)
; Output:
; < é ü ç Ω Hello & World ✓ >