|
1
2
3
4
5
6 |
19> Hanzi = <<"汉字"/utf8>>. <<230,177,137,229,173,151>>20> io:format("~ts",[Hanzi]).汉字ok21> io:format("~w",[Hanzi]). <<230,177,137,229,173,151>>ok |
erlang的汉字字符串的二进制还原成汉字,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/ribavnu/p/3744022.html