Advertisement
here2share

# unicode_basic_workarounds.py

May 6th, 2015
374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. # unicode_basic_workarounds.py
  2.  
  3. a="Please wait\u2026"
  4. print a
  5. print unicode(a), '???' ### <<< Careful!
  6. print
  7. print repr(a)
  8. print repr(a.decode('unicode-escape'))
  9. print a.decode('unicode-escape')
  10. print 'Done! Thanks for being very patient'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement