Ok, Thanks all for your explanation.
I encoded the protobuf serialized string to base64 so I can work now.
The reason this may seem weird is that I am using protobuf over a text
channel and not a binary channel - the reason is same, i have to pass some
compound data structure from one process to another and not write code to
On Wednesday, May 14, 2014 4:56:08 PM UTC-7, Ganesh Sangle wrote:
> Hi Guys,
> I am trying to use protobufs between two entities - one in python and
> another in c++.
> The advantage of using protobuf is i dont have to write
> serializing/deserializing code.
> However, there is a complication.
> The message that I create in python world, when i serialize it to be sent
> over to the other side, has '\r\n'.
> The code on the other side is already using \n as a delimiter and cutting
> out the strings.
> So what happens is that the message string gets split and when I try to
> re-assemble it it doent work.
> Since my code is a smaller part of a larger existing system, I wanted to
> know if there is a way to customize/configure protobuf so that it uses some
> other characters instead of '\n\t', or just use a different representation
> (all hex numbers or whatever) when converting it to string.
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to email@example.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.