We have a Java web server. When this sends some string, for instance,
É, this is received as multiple bytes on the C++ client end. As a
result something like SÉBASTIEN gets displayed like S2 funny
charactersBASTIEN. What I assume is happening internally is that,
Java being UTF-16 by default,
On Jan 25, 2011, at 15:27 , Hitesh Jethwani wrote:
As may be evident from above I am naive at Java and Protobuf. Any
help on this is appreciated.
The Java protocol buffer API encodes strings as UTF-8. Since C++ has
no unicode support, what you get on the other end is the raw UTF-8