Detect character encoding

Michal michal at plovarna.cz
Sun Dec 4 08:24:53 EST 2005


Hello,
is there any way how to detect string encoding in Python?

I need to proccess several files. Each of them could be encoded in 
different charset (iso-8859-2, cp1250, etc). I want to detect it, and 
encode it to utf-8 (with string function encode).

Thank you for any answer
Regards
Michal



More information about the Python-list mailing list