Hello guys,

I'm new to protobuf, here is my situation: for compatibility with old projects 
I have to do protobuf <-> XML two-way conversion with protobuf-java-format 
package. The package can merge XML to protobuf and print protobuf to 
XML/String, just what I need, just one problem: we use UTF-8 for all string 
fields, and after protobuf to XML conversion, values of these fields get 
escaped to some unreadable octal groups, e.g. \201\356\227, stuffs like that. I 
googled a little bit and this seems to be by design hehavior of 
protobuf-java-format package, but I have no idea how do I get original values 
back. Is there any alternative packages I can use, or any specific 
solution/suggestion how to decode that octal groups?


You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To view this discussion on the web visit 
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to