Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@stefanor
Created November 8, 2016 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefanor/fc9286556713fdd0d72844d5cbf13ea7 to your computer and use it in GitHub Desktop.
Save stefanor/fc9286556713fdd0d72844d5cbf13ea7 to your computer and use it in GitHub Desktop.
#!/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