Created
August 3, 2014 12:34
-
-
Save yudanta/c42da21b089692e31c92 to your computer and use it in GitHub Desktop.
prevent ascii error
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
#prevent ascii error | |
#place at the top of the file :D | |
import codecs | |
import sys | |
streamWriter = codecs.lookup('utf-8')[-1] | |
sys.stdout = streamWriter(sys.stdout) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment