Mercurial > repo
view bin/unicode @ 4094:bbe9ae610bbc
<shachaf> echo \'echo resume\' > bin/r\xc3\xa8sum\xc3\xa8; chmod +x bin/r\xc3\xa8sum\xc3\xa8
author | HackBot |
---|---|
date | Thu, 28 Nov 2013 21:14:46 +0000 |
parents | 49ab5b2e2ebf |
children | ab2d8a9d1432 |
line wrap: on
line source
#!/usr/bin/env python # -*- encoding: utf-8 -*- import sys import unicodedata try: print u''.join(map(unicodedata.lookup, sys.argv[1:])).encode('utf-8') except KeyError: print u'Unknown character.'