view bin/unidecode @ 3978:610f86902ec3

<hagb4rd> pastelog \\[ x |
author HackBot
date Sat, 02 Nov 2013 22:38:57 +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")