Mercurial > repo
view bin/unidecode @ 3992:815f4ed87390
<oerjan> addquote <Taneb> kmc, I was trying to go to a sci-fi and fantasy society social, and I went to the wrong bar <Taneb> Wound up at my university\'s fetish society <Taneb> Didn\'t realise for an hour and a half
author | HackBot |
---|---|
date | Thu, 07 Nov 2013 23:57:04 +0000 |
parents | b538b5f005ab |
children |
line wrap: on
line source
#!/usr/bin/env python import sys import unicodedata print u" ".join("[U+{0:04X} {1}]".format(ord(c), unicodedata.name(c, "DUNNO")) for c in " ".join(sys.argv[1:]).decode("utf-8")).encode("utf-8")