Re: solution for python and unicode string already found

2009-02-09 Thread Petar Petrov
2009/1/29 bart van deenen bart.vandee...@gmail.com Hi Kenton Here's the details: kubu:~$ protoc --version libprotoc 2.0.3 kubu:~$ python -V Python 2.5.2 This is a self-compiled protoc (because I had added the actionscript output generator). I actually find in CHANGES.txt for 2.0.2

Re: solution for python and unicode string already found

2009-02-01 Thread Kenton Varda
Petar, can you look into this? 2009/1/29 bart van deenen bart.vandee...@gmail.com Hi Kenton Here's the details: kubu:~$ protoc --version libprotoc 2.0.3 kubu:~$ python -V Python 2.5.2 This is a self-compiled protoc (because I had added the actionscript output generator). I actually

Re: solution for python and unicode string already found

2009-01-29 Thread bart van deenen
Hi Kenton Here's the details: kubu:~$ protoc --version libprotoc 2.0.3 kubu:~$ python -V Python 2.5.2 This is a self-compiled protoc (because I had added the actionscript output generator). I actually find in CHANGES.txt for 2.0.2 that the Strings now use the unicode type rather than the str

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

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