[protobuf] protobuf not handling special characters between Java server and C++ client

2011-01-25 Thread Hitesh Jethwani
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,

Re: [protobuf] protobuf not handling special characters between Java server and C++ client

2011-01-25 Thread Evan Jones
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