I have a C++-based server using protocol buffers as the IDL, and I'm
trying to ensure that it rejects invalid UTF-8 strings. My systest
library is written in Python. The C++ protocol buffer library does not
seem to do any UTF-8 string checking on string types, whereas the
Python library does. Whenever I inject invalid UTF-8 into the Python
systests to make sure the server rejects the string, the Python
library complains.

Is there a way to override this behavior?

I don't want to change my protocol buffer definitions to be the bytes
type, because these really should be strings, and the Python library
is doing exactly what I want for the general case.


You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to