bivas / protobuf-java-format

Provide serialization and de-serialization of different formats based on Google’s protobuf Message. Enables overriding the default (byte array) output to text based formats such as XML, JSON and HTML.
BSD 3-Clause "New" or "Revised" License
152 stars 97 forks source link

Escape / Unescape bytes are not perfect inverses #28

Open primshnick opened 8 years ago

primshnick commented 8 years ago

Escaping a ByteString (JavaFormat.escapeBytes(...)) produces a String that does not always get unescaped back to an equivalent of the original ByteString via JavaFormat.unescapeBytes(...). See pull request #27 for a test that demonstrates this.

primshnick commented 8 years ago

This has been addressed by pull request 26