Gerrit Holl wrote:
> Hei,
>
> On 2006-10-30 08:25:41 +0100, thebjorn wrote:
> >   def unfk(s):
> >       return eval(repr(s)[1:]).decode('utf-8')
> >
...
> > Is there a less hack'ish way to do this?
>
> Slightly lack hackish:
>
> return ''.join(chr(ord(c)) for c in s)

Much less hackish :-)

-- bjorn

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to