On 2012-03-08, John Nagle <na...@animats.com> wrote: > So it's possible to get junk characters in a "str", and they > won't convert to Unicode. I've had this happen with databases > which were supposed to be ASCII, but occasionally a non-ASCII > character would slip through.
Perhaps encode and then decode, rather than try to encode a non-encoded str. -- Neil Cerutti -- http://mail.python.org/mailman/listinfo/python-list