Skip to content

Instantly share code, notes, and snippets.

@chryss
Created September 11, 2008 23:49
Show Gist options
  • Save chryss/10342 to your computer and use it in GitHub Desktop.
Save chryss/10342 to your computer and use it in GitHub Desktop.
# HTML numbered entity (hex) to unicode string
>>> entity = '&#x01ce'
>>> unichr(int(entity[3:],16))
u'\u01ce'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment