Skip to content

Instantly share code, notes, and snippets.

@technocake
Created July 14, 2019 19:54
Show Gist options
  • Save technocake/b160da45c084396d68bee2be661e35c4 to your computer and use it in GitHub Desktop.
Save technocake/b160da45c084396d68bee2be661e35c4 to your computer and use it in GitHub Desktop.
python encoding info
import sys
default = sys.getdefaultencoding()
e_in = sys.stdin.encoding
e_out = sys.stdout.encoding
print('''
python system default encoding: {}
stdin: {}
stdout: {}
'''.format(default, e_in, e_out)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment