[Tutor] input file encoding

Tim Michelsen timmichelsen at gmx-topmail.de
Tue Sep 11 00:33:24 CEST 2007


Hello,
I want to process some files encoded in latin-1 (iso-8859-1) in my 
python script that I write on Ubuntu which has UTF-8 as standard encoding.

When I use the "print lines_in_myfile" is get some wired symbols.

How shold I read those files in or convert their encoding to utf-8?

Thanks in advance,
Tim



More information about the Tutor mailing list