Skip to content

Instantly share code, notes, and snippets.

@jamesproud
Created June 9, 2013 21:12
Show Gist options
  • Save jamesproud/5745246 to your computer and use it in GitHub Desktop.
Save jamesproud/5745246 to your computer and use it in GitHub Desktop.
Setting The Default Encoding In Python
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment