Skip to content

Instantly share code, notes, and snippets.

@tathagata
Created June 24, 2013 18:50
Show Gist options
  • Save tathagata/5852451 to your computer and use it in GitHub Desktop.
Save tathagata/5852451 to your computer and use it in GitHub Desktop.
Detection using chardet
>>>import chardet
>>>chardet.detect("ombrosità")
{'confidence': 0.8444448197532533, 'encoding': 'ISO-8859-2'}
>>>chardet.detect("bebè")
{'confidence': 0.63333361481494, 'encoding': 'ISO-8859-2'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment