[erlang-questions] Is this proper way to convert a latin string to utf8 string

王昊 jusfeel@REDACTED
Sun Jul 26 15:11:27 CEST 2015


Hi,
Does anyone know if this is a proper way to convert latin string to utf-8 string?


{ok, S} = asn1rt:utf8_binary_to_list(list_to_binary([232,191,153])).
io:format("~ts~n",[S]).

Thanks,
Hao






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150726/3625ffcc/attachment.htm>


More information about the erlang-questions mailing list