Skip to content

Instantly share code, notes, and snippets.

@gnuton
Created June 10, 2013 14:09
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 gnuton/5748980 to your computer and use it in GitHub Desktop.
Save gnuton/5748980 to your computer and use it in GitHub Desktop.
Printing in utf8 unicode escaped strings in Python
t = 'R\\u00f3is\\u00edn'
print(t.decode('unicode_escape'))
output => Róisín
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment