RPC with UTF-8

#1

Hi,

I’ve now got a simple rpc server which echoes back the data received.

When I call sess.call(“rpc:remote”, [‘javascript だ’]).then(text, ab.log); in javascript and print out the result, I get a “javascript ご instead of “javascript だ”

When I call the same rpc function from a python client, with the same parameters, I get a [u’python \u3060’], which I believe is correct.

Is it possible that the http://autobahn.ws/public/autobahn.min.js script isn’t encoding the parameters properly, or what’s the issue?

Daniel

0 Likes

#2

My mistake, I forgot the meta utf-8 in the html… it’s working just fine.

···

On Tuesday, April 3, 2012 7:37:57 PM UTC+2, Daniel F. wrote:

Hi,

I’ve now got a simple rpc server which echoes back the data received.

When I call sess.call(“rpc:remote”, [‘javascript だ’]).then(text, ab.log); in javascript and print out the result, I get a “javascript ご instead of “javascript だ”

When I call the same rpc function from a python client, with the same parameters, I get a [u’python \u3060’], which I believe is correct.

Is it possible that the http://autobahn.ws/public/autobahn.min.js script isn’t encoding the parameters properly, or what’s the issue?

Daniel

0 Likes