Skip to content

Instantly share code, notes, and snippets.

@rhunter
Created August 3, 2011 14:43
Show Gist options
  • Save rhunter/1122795 to your computer and use it in GitHub Desktop.
Save rhunter/1122795 to your computer and use it in GitHub Desktop.
A bunch of working Python examples with a unicode arrow for @harukizaemon
#!/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