You can't use unicode expression this way from console. Try the same expression writen in the erlang module.
2012/3/5 Steve Vinoski <st...@basho.com> > > > On Sun, Mar 4, 2012 at 4:51 PM, Buri Arslon <buri...@gmail.com> wrote: > >> Hi everybody! >> >> I can't put unicode string to riak. I was following the >> riak-erlang-client docs, and this doesn't work: >> >> Object = riakc_obj:new(<<"snippet">>, <<"odam">>, <<"Одамлардан >> тинглаб хикоя">>). >> ** exception error: bad argument >> >> I googled but couldn't find anything meaningful about this issue. So, I'd >> be very grateful if someone could refer me >> to relevant documentation or give me some hints to solve the problem. >> > > Have a look at the Erlang unicode module: > > http://www.erlang.org/doc/man/unicode.html > > You probably need to use unicode:characters_to_binary to generate a valid > binary for the value you're trying to store in riak. > > --steve > > _______________________________________________ > riak-users mailing list > riak-users@lists.basho.com > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > >
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com