http://chardet.readthedocs.org/en/latest/usage.html
import chardet
print chardet.detect('Bush hid the facts')
>>> {'confidence': 1.0, 'encoding': 'ascii'}
It might be fun to run Hypothesis on this to see what if any minimal ASCII set is guessed wrong by chardet.
http://chardet.readthedocs.org/en/latest/usage.html
import chardet
print chardet.detect('Bush hid the facts')
>>> {'confidence': 1.0, 'encoding': 'ascii'}
It might be fun to run Hypothesis on this to see what if any minimal ASCII set is guessed wrong by chardet.