Mitesh Bhawsar
Mitesh Bhawsar

Reputation: 11

In google protocol buffer writeTo method string values is not encoded

After writing a output stream to writeTo method my file showing string value as I set

Miteshr new group" 2014 01 11z

Upvotes: 0

Views: 89

Answers (1)

Marc Gravell
Marc Gravell

Reputation: 1063338

Strings in protobuf are UTF-8 encoded, which means that the text portions will be plainly readable in any tool that generally works with text. If you look in a binary editor, however, you'll notice that your other data is encoded differently and not as text.

UTF-8 is pretty much ubiquitous these days.

Upvotes: 1

Related Questions