Skip to content

Instantly share code, notes, and snippets.



Created Nov 8, 2016
What would you like to do?
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.