[erlang-questions] Re: UTF-8 problem ?

moi mapandfold@REDACTED
Wed Apr 6 08:23:23 CEST 2011


The list from os:cmd is a byte list of UTF-8 string. You can use "~ts" to
print it properly.

1> io:format("~ts~n",
[unicode:characters_to_list(erlang:iolist_to_binary([50,48,49,49,229,185,180,32,52,230,156,136,32,54,230,151,165]))]).
2011年 4月 6日
ok


--
View this message in context: http://erlang.2086793.n4.nabble.com/UTF-8-problem-tp3429523p3429982.html
Sent from the Erlang Questions mailing list archive at Nabble.com.



More information about the erlang-questions mailing list