Mercurial > repo
view bin/unidecode @ 4302:4c8ac460e606
<FireFly> echo -e \'#!/bin/sh\\nrelcome | r13\' >bin/r13elcome; chmod +x bin/r13elcome
author | HackBot |
---|---|
date | Tue, 14 Jan 2014 21:03:57 +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")