[erlang-questions] unicode:characters_to_list

Michael Uvarov freeakk@REDACTED
Thu Mar 22 16:38:45 CET 2012


Hello,

254 is a code point. It is [195,190] in utf8 and [0,254] in utf16.
[195,190] are bytes, not code points.
Here you can see:

(i18n@REDACTED)14> <<254/utf8, 0>>.
<<195,190,0>>
(i18n@REDACTED)15> <<254/utf16, 0>>.
<<0,254,0>>
(i18n@REDACTED)16> <<254/utf32, 0>>.
<<0,0,0,254,0>>

-- 
С уважением,
Уваров Михаил.
Best regards,
Uvarov Michael



More information about the erlang-questions mailing list