[rabbitmq-discuss] encoding problem when using json rpc

Emile Joubert emile at rabbitmq.com
Mon Aug 8 11:20:01 BST 2011


On 07/08/11 13:19, mysurf mail wrote:
> Hi.
> 1. Json Rpc question : 
> 
> It seems that when I send a hebrew strings with rabbitmq - I get squares
> instead of strings in the other side. 
> It is not the way when I send it with regular publishing. 
> Can I control the encoding whein I use JSON RPC? 

Rabbit treats the message body as an opaque blob of bytes. This remains
true regardless of whether you use RPC. The message won't be modified by
the broker, so if you are seeing differences then the problem is
probably in your encoding or decoding process.

> 2. Where Can i find a good json rpc documentation and examples? 

The 6th tutorial covers RPC:
http://www.rabbitmq.com/tutorials/tutorial-six-java.html

Also see the JSON RPC examples included with the Java client:
http://hg.rabbitmq.com/rabbitmq-java-client/file/default/src/com/rabbitmq/tools/jsonrpc/



Regards

Emile


More information about the rabbitmq-discuss mailing list