RosettaCodeData/Task/UTF-8-encode-and-decode/Lingo/utf-8-encode-and-decode-1.lingo

7 lines
266 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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