view bin/unicode @ 4173:88d05b052b66

<oerjan> sed -i \'2s!sed.*!sed \'\\\'\'s/^`\\\\(a|the\\\\) //;s/[Ss]\\? .*//\'\\\'\')!\' bin/learn
author HackBot
date Wed, 11 Dec 2013 01:20:37 +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.'