<span class="Apple-style-span" style="font-family: Verdana; font-size: 12px; white-space: pre-wrap; ">I have updated my erlang to version R13B, it contains the 'unicode' module.

As David wrote:
1> unicode:characters_to_binary([1081,1094,1091]).         
<<208,185,209,134,209,131>>

For versions R12B it may be implemented as you have described.</span><div><span class="Apple-style-span" style="font-family: Verdana; font-size: 12px; white-space: pre-wrap;"><br></span></div><div><span class="Apple-style-span" style="font-family: Verdana; font-size: 12px; white-space: pre-wrap;">Thanks all!<br>
</span><div><div><div><br><div class="gmail_quote">2009/5/19 Hasan Veldstra <span dir="ltr"><<a href="mailto:hasan.veldstra@gmail.com">hasan.veldstra@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
<br>
Both [1081,1094,1091] and [208,185,209,134,209,131] represent the same Russian text ("ÊÃÕ") in different encodings. šThe first list is UTF-32, the second is UTF-8.<br>
<br>
1> xmerl_ucs:to_utf8([1081,1094,1091]).<div class="im"><br>
[208,185,209,134,209,131]<br></div>
2> xmerl_ucs:from_utf8([208,185,209,134,209,131]).<br>
[1081,1094,1091]<br>
<br>
/Hasan<br><font color="#888888">
<br>
<br>
--<br>
<a href="http://twitter.com/hasanv" target="_blank">http://twitter.com/hasanv</a></font><div><div></div><div class="h5"><br>
<br>
On 18 May 2009, at 13:20PM, Andrey Shnayder wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
Hi,<br>
<br>
I have integrated java and erlang, but I have a problem with russian chars which I send from java. It was received as, for example, [1081,1094,1091], although it must was appeared as [208,185,209,134,209,131]. However russian chars in the erlang function answer was normally processed by java.<br>

Can you help me, please? Where the problem is?<br>
<br>
-- <br>
Best regards,<br>
Andrey.<br></div></div><div class="im">
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">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>
</div></blockquote>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Andrey.<br>
</div></div></div></div>