[erlang-questions] Java and Erlang. Russian chars
Hasan Veldstra
hasan.veldstra@REDACTED
Tue May 19 19:34:17 CEST 2009
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.
1> xmerl_ucs:to_utf8([1081,1094,1091]).
[208,185,209,134,209,131]
2> xmerl_ucs:from_utf8([208,185,209,134,209,131]).
[1081,1094,1091]
/Hasan
--
http://twitter.com/hasanv
On 18 May 2009, at 13:20PM, Andrey Shnayder wrote:
> Hi,
>
> 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.
> Can you help me, please? Where the problem is?
>
> --
> Best regards,
> Andrey.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list