Created
August 25, 2014 11:31
-
-
Save pearofducks/db187b132cdf5d568de0 to your computer and use it in GitHub Desktop.
Python fix UTF-8 encoding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
reload(sys) # Reload does the trick! | |
sys.setdefaultencoding('UTF8') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment