Mercurial > repo
changeset 4272:0ea5d8e5b787
<oerjan> revert
author | HackBot |
---|---|
date | Tue, 07 Jan 2014 03:52:02 +0000 |
parents | 9a09d2cbf6a7 |
children | 5fddb59b5d15 |
files | bin/unidecode unidecode- |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/unidecode Tue Jan 07 03:52:02 2014 +0000 @@ -0,0 +1,4 @@ +#!/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")
--- a/unidecode- Tue Jan 07 03:51:18 2014 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ -#!/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")