Anjanesh Lekshminarayanan <mail <at> anjanesh.net> writes: > > > It does auto-detect it as cp1252- look at the files in the traceback and > > you'll see lib\encodings\cp1252.py. Since cp1252 seems to be the wrong > > encoding, try opening it as utf-8 or latin1 and see if that fixes it. > > Thanks a lot ! utf-8 and latin1 were accepted !
Just so you know, latin-1 can decode any sequence of bytes, so it will always work even if that's not the "real" encoding. -- http://mail.python.org/mailman/listinfo/python-list