Created
August 3, 2011 14:43
-
-
Save rhunter/1122795 to your computer and use it in GitHub Desktop.
A bunch of working Python examples with a unicode arrow for @harukizaemon
This file contains 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 | |
# encoding: UTF-8 | |
import os | |
print "➜" | |
print u"➜" | |
print os.path.expandvars(u"➜") | |
print os.path.expandvars(u"➜").encode('UTF-8') | |
print os.path.expandvars(unicode("➜", 'UTF-8')) | |
print os.path.expandvars(unicode("➜", 'UTF-8').encode('UTF-8')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment