[erlang-questions] unicode:characters_to_list

Henning Diedrich hd2010@REDACTED
Fri Mar 23 19:49:58 CET 2012


On 3/22/12 4:38 PM, Michael Uvarov wrote:
> 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>>
>
Nice, thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120323/22c9f121/attachment.htm>


More information about the erlang-questions mailing list