Mercurial > repo
view bin/unidecode @ 4155:1e4bcd213420
<oerjan> echo \'A catamorphism is when you recurse too greedily and too deep.\' >wisdom/catamorphism
author | HackBot |
---|---|
date | Tue, 10 Dec 2013 17:18:55 +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")