Created
November 8, 2016 19:22
-
-
Save stefanor/fc9286556713fdd0d72844d5cbf13ea7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env python | |
from __future__ import print_function | |
import codecs | |
import sys | |
encoding = getattr(sys.stdout, 'encoding', '') | |
if encoding in (None, 'ANSI_X3.4-1968'): | |
UTF8Writer = codecs.getwriter('utf8') | |
sys.stdout = UTF8Writer(getattr(sys.stdout, 'buffer', sys.stdout)) | |
s = u'%s,\N{BOX DRAWINGS LIGHT UP AND LEFT}' % encoding | |
print(s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment