Skip to content

Instantly share code, notes, and snippets.

@haya14busa
Created September 9, 2013 13:48
Show Gist options
  • Save haya14busa/6495819 to your computer and use it in GitHub Desktop.
Save haya14busa/6495819 to your computer and use it in GitHub Desktop.
import sys, codecs
sys.stdout = codecs.getwriter('utf_8')(sys.stdout)
sys.stdin = codecs.getreader('utf_8')(sys.stdin)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment