RosettaCodeData/Task/UTF-8-encode-and-decode/Mathematica/utf-8-encode-and-decode.math

3 lines
121 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
utf = ToCharacterCode[ToString["AöЖ€", CharacterEncoding -> "UTF8"]]
ToCharacterCode[FromCharacterCode[utf, "UTF8"]]