change string to unicode

jyoung79 at kc.rr.com jyoung79 at kc.rr.com
Fri Dec 19 13:14:53 EST 2008


Hi Steven and Peter,

Thank you both very much for taking the time to answer my question.  Your solutions
work perfect! :-)

Thanks again!

Jay


> How about
>
> >>> "\\u03b1".encode("ascii").decode("unicode-escape")
> 'α'
>
> Peter



More information about the Python-list mailing list