1 Python Interface to NKF2 (2009.06.02)
5 1) Download latest nkf-2.0.9+ from http://sourceforge.jp/projects/nkf/
7 2) $ tar zxvf nkf-2.x.x.tar.gz
11 4) $ tar zxvf NKF_python.tgz
15 6) # python setup.py install
19 ## flag is same as the flags of nkf itself
21 output = nkf.nkf(flag, input)
23 ## For example, to convert from euc-jp to utf-8
24 output = nkf.nkf('-Ew', 'some euc-jp string')
27 which guesses input_string_code and returns one of next strings:
42 input_code = nkf.guess('some string')
44 Matsumoto, Tadashi ma2@city.plala.jp