Re: solution for python and unicode string already found

2009-01-28 Thread 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 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~--~~~~--~~--~--~---



Re: solution for python and unicode string already found

2009-01-28 Thread bart van deenen



On Jan 28, 7:50 pm, Kenton Varda ken...@google.com wrote:
 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.

It's 2.0.3

I'm  not at work right now, but will check the python version (it's
2.5 or 2.6)
I'm happy to help track this issue, I've compiled protoc earlier when
I needed actionscript support. I think I'm currently using the default
from ubuntu, but let me check tomorrow.

Thanks

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 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~--~~~~--~~--~--~---