Created
April 18, 2009 09:36
-
-
Save takinbo/97530 to your computer and use it in GitHub Desktop.
This file contains 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
# in case you ever come across a similar error in python: | |
# | |
# UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in | |
# position 2: ordinal not in range(128) | |
# | |
# simply use these | |
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