Hi All,
how can I find the encoding to use to open a file..
I have a file with "£" chararcter..
is there some utility function in python that I can
use
how can I know which encoding to use
f=codecs.open(filename, "r",
encoding='iso-8859-1')
or
f=codecs.open(filename, "r",
encoding='latin-1')
or
f=codecs.open(filename, "r",
encoding='utf-8')
sys.defaultencoding gives ascii and I know that's
not the one to use
cheers
-----------------------------------------------------
Thomas Thomas [EMAIL PROTECTED] Phone. +64 7 855 8478 Fax. +64 7 855 8871 |
-- http://mail.python.org/mailman/listinfo/python-list