Ascii to Unicode.

Thomas Jollans thomas at jollans.com
Wed Jul 28 15:40:23 EDT 2010


On 07/28/2010 09:29 PM, John Nagle wrote:
>     for rawline in input :
>         unicodeline = unicode(line,'latin1')    # Latin-1 to Unicode
>     output.write(unicodeline.encode('utf-8')) # Unicode to as UTF-8

you got your blocks wrong.



More information about the Python-list mailing list