Skip to content

Instantly share code, notes, and snippets.

@azhtom
Created March 30, 2015 17:12
Show Gist options
  • Save azhtom/8ad0770e696fc9feba24 to your computer and use it in GitHub Desktop.
Save azhtom/8ad0770e696fc9feba24 to your computer and use it in GitHub Desktop.
fix default encoding python
import sys
encoding = 'utf-8'
reload(sys)
sys.setdefaultencoding(encoding)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment