view bin/unidecode @ 4004:c08a49fca968

<mrhmouse> wget http://nodejs.org/dist/v0.10.22/node-v0.10.22-linux-x64.tar.gz -O node.tar.gz
author HackBot
date Wed, 13 Nov 2013 16:29:23 +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")