What version of protocol buffers are you using?  I believe we added unicode
support to Python protobufs in 2.0.1 or 2.0.2, in which case you shouldn't
need to manually encode/decode.

On Wed, Jan 28, 2009 at 12:02 AM, bart van deenen

> Oops found it already :-)
> T.s=ustring.encode('utf-8')
> and for getting it out
> ustring2 = T.s.decode('utf-8')
> Bart
> >

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

Reply via email to