Determining the encoding of a text file

Rajorshi rajorshi at fastmail.fm
Mon Mar 1 05:24:11 EST 2004


Hello!
 How do I determine the encoding of a text file ? That is,
given a text file I want to know the encoding it is in
UTF8 or UTF16 or Latin etc. It would be very helpful if
you could tell me how to do this in python on Linux. But
just the method is acceptable.
Thanks in advance!



More information about the Python-list mailing list