On Sat, Apr 7, 2012 at 12:10 AM, Ian Kelly <ian.g.ke...@gmail.com> wrote: >>>> import codecs >>>> codecs.getdecoder('unicode_escape')(s)[0] > 'Hello: this is a test' > > Cheers, > Ian
Thanks, Ian. I had assumed that if a unicode string didn't have a .decode method, then I couldn't use a decoder on it, so it hadn't occurred to me to try that.... N. -- http://mail.python.org/mailman/listinfo/python-list