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.

On Fri, Mar 6, 2009 at 12:40 PM, Ross Vandegrift <r...@kallisti.us> wrote:

>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to