RosettaCodeData/Task/UTF-8-encode-and-decode/Lingo/utf-8-encode-and-decode-1.lingo
2023-07-01 13:44:08 -04:00

6 lines
266 B
Text

chars = ["A", "ö", "Ж", "€", "𝄞"]
put "Character Unicode (int) UTF-8 (hex) Decoded"
repeat with c in chars
ba = bytearray(c)
put col(c, 12) & col(charToNum(c), 16) & col(ba.toHexString(1, ba.length), 14) & ba.readRawString(ba.length)
end repeat