protobuf 2.0.3 *forces* Unicode
Hi everyone, I have a python app that passes objects using protocol buffers. This app *depends* on the ability to pass strings as strings and not as Unicode objects - data ends up being distributed to routers and switches via SNMP where Unicode causes tons of problems. Prior to 2.0.3, when I had a protocol buffer with a string on input, I got a string on output. Now I put in a string and always get out a unicode. I need the old behavior. How can I get it back? Thanks, Ross --~--~-~--~~~---~--~~ 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: protobuf 2.0.3 *forces* Unicode
On Fri, Mar 06, 2009 at 12:58:08PM -0800, Kenton Varda wrote: You need to use the bytes type instead of string. string has always been defined in the docs as UTF-8, it just wasn't enforced in the Python implementation. Aha, that did it. Switching to bytes and I get strings out. Thanks for the tip! Ross -- Ross Vandegrift r...@kallisti.us If the fight gets hot, the songs get hotter. If the going gets tough, the songs get tougher. --Woody Guthrie --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---