Hi Kunthar,<br><br>Comments below. :)<br>4> "ðüö".  <br>[287,252,246]<br>5> "süö".<br>"süö"<br>6> list_to_binary("süö").<br><<"süö">><br>7> list_to_binary("ðüö").<br>
** exception error: bad argument<br>     in function  list_to_binary/1<br>        called as list_to_binary([287,252,246])<br>8> io:format("|~10.3.+ts|~n",["ðüö"]).<br>|+++++++ðüö|<br><br>The ð character isn't valid latin1 (which is what normally erlang is expecting).<br>
When calling io:format/2 with non-latin1 strings you have to use ~ts instead of ~s.<br>More details:<br><a href="http://www.erlang.org/doc/man/unicode.html">http://www.erlang.org/doc/man/unicode.html</a><br><a href="http://erlang.org/eeps/eep-0010.html">http://erlang.org/eeps/eep-0010.html</a><br>
<br>By the way, you need OTP >= R13A to get that to work.<br><br>Cheers,<br>:Davide<br><br><div class="gmail_quote">2009/5/19 Kunthar <span dir="ltr"><<a href="mailto:kunthar@gmail.com">kunthar@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">(tester2@testbed2)19> io:format("|~10.3.+s|~n",["süö"]).<br>|+++++++süö|<br>
ok<br><br>(tester2@testbed2)20> io:format("|~10.3.+s|~n",["ðüö"]).<br>** exception exit: {badarg,[{io,format,<br>

                                [<0.31.0>,"|~10.3.+s|~n",[[287,252,246]]]},<br>                            {erl_eval,do_apply,5},<br>                            {shell,exprs,6},<br>                            {shell,eval_exprs,6},<br>


                            {shell,eval_loop,3}]}<br>     in function  io:o_request/3<br><br><br>Comments?<br><br><br>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br></blockquote></div><br>