Skip to content

Instantly share code, notes, and snippets.

@ssendeavour
Last active December 18, 2015 17:39
Show Gist options
  • Save ssendeavour/5820369 to your computer and use it in GitHub Desktop.
Save ssendeavour/5820369 to your computer and use it in GitHub Desktop.
detect encoding of string in python
import chardet
chardet.detect('something中文Chinese')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment