On Thursday, December 20, 2012 4:57:19 AM UTC-7, iMath wrote: > how to detect the encoding used for a specific text data ? The chardet package will probably do what you want: http://pypi.python.org/pypi/chardet