Status: New
Owner: liuj...@google.com
Labels: Type-Defect Priority-Medium

New issue 386 by kmcramas: japanese characters garbled after XmlFormat.merge
http://code.google.com/p/protobuf/issues/detail?id=386

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.


Attachments:
        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 protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to