All pastes #328901 Raw Edit

Someone

public text v1 · immutable
#328901 ·published 2007-01-26 04:18 UTC
rendered paste body
import unicodedata

def half2full(c):
    n = unicodedata.name(c)
    if 'KATAKANA' not in n:
        return c
    else:
        return eval(r'u"\N{%s}"' % n.replace('HALFWIDTH ', ''))

hf = '\xbc\xcd\xc1\xc2'.decode('cp932')
print ''.join(map(half2full, hf)).encode('cp949')