view bin/unicode @ 4211:d616398f84e7

<fizzie> sed -i -e \'s/| head //\' bin/quoth # gonna bork it up somehow...
author HackBot
date Fri, 20 Dec 2013 13:57:08 +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.'