view bin/unidecode @ 4203:e87d36fd991f

<oerjan> sed -i \'2s/?/\\\\?/\' bin/learn # missed one
author HackBot
date Thu, 19 Dec 2013 21:03:48 +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")