Re: Protocol Buffers and xmlrpc

2009-01-24 Thread Kenton Varda
The protocol buffer encoding is a binary format. SerializeToString() actually returns a string containing raw bytes, not text. XML doesn't allow you to embed raw bytes into it, so you will have to base-64 encode them. It's probably better to avoid using XML altogether if you can. Embedding a pr

Protocol Buffers and xmlrpc

2009-01-24 Thread mmarques
Hy, I'm using protocoll buffers to share data between python and java with xmlrpc. I've implemented a method in python that returns a string that is the result of invoking, in Python object.serializeToString() My rpc client while reading the response returns: An invalid XML character (Unicode