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 S<2 funny
characters>BASTIEN. What I assume is happening internally is that,
Java being UTF-16 by default, writes such characters across multiple
bytes. In C++, if these characters are handled individually and hence
the increase in string length and invalid display.
Also if on the C++ client I run, MultiByteToWideChar(CP_UTF8,...),
then this gets converted correctly into a wide char. The problem is
that I want to avoid using wide characters on the C++ end. Using
WideCharToMultiByte(CP_ACP,...) again on wide character in C++,
resolves my issue, but I want to avoid this double conversion.
As may be evident from above I am naive at Java and Protobuf. Any help
on this is appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to