Status: New
Labels: Type-Defect Priority-Medium

New issue 386 by kmcramas: japanese characters garbled after XmlFormat.merge

What steps will reproduce the problem?
1. Create XML with japanese characters in values.
2. Read the XML with the japanese characters and convert to protoBuff object with XmlFormat.merge(readable, builder).
3. Print the field with the japanese character.

What is the expected output? What do you see instead?
Expected Output: ありがとう
Value instead: B\212LhF

What version of the product are you using? On what operating system?
libprotoc 2.4.1, Windows XP Professional Service Pack 3

Please provide any additional information below.
In reading the file I use InputStreamReader. Tried printing the values read without putting it to XmlFormat.merge yet, the value is correct. The field type is string in .proto. I also tried changing it to bytestring. The output is still the same. I searched a number of forums just to shed light from this but I can't find any.

        2.JPG  131 KB

You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to