Skip to content

Instantly share code, notes, and snippets.

@shimizukawa
Created November 9, 2011 08:39
Show Gist options
  • Save shimizukawa/1350858 to your computer and use it in GitHub Desktop.
Save shimizukawa/1350858 to your computer and use it in GitHub Desktop.
virtualenvでsys.stdout.encodingが狂う
None
cp932
今日は
'cp932'
cp932
今日は
# -*- coding: utf-8 -*-
import sys, locale
print(repr(sys.stdout.encoding))
print((locale.getpreferredencoding()))
print('今日は')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment