Probably https://github.com/chardet/chardet or https://github.com/PyYoshi/cChardet could be used.
Probably https://github.com/chardet/chardet or https://github.com/PyYoshi/cChardet could be used.