view bin/unicode @ 4078:24054e3f5861

<oerjan> learn Impomatic never did anything weird enough to get into this database.
author HackBot
date Tue, 26 Nov 2013 13:59:42 +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.'