view bin/unidecode @ 4566:1b161db44445

<fizzie> mv data/8ballreplies share/; sed -i -e \'s/data/share/\' bin/8*ball; rmdir data # going to hit some empty-directory problem again, I\'m sure
author HackBot
date Tue, 15 Apr 2014 10:28:33 +0000
parents 0ea5d8e5b787
children 940c1732e450
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")