guess

Japanese charactor encoding detector


License
BSD-3-Clause
Install
pip install guess==1.0.5

Documentation

Japanese charactor encoding detector
====================================

This module was ported from gauche charconv module.
Supported encoding is UTF-8, Shift_JIS, EUC-JP, ISO-2022-JP

INSTALL
-------
 python setup.py build
 python setup.py install

EXAMPLE
-------

    >>> import guess
    >>> s = '\x82\xa0\x82\xa2\x82\xa4\x82\xa6\x82\xa8'
    >>> guess.guess(s)
    'Shift_JIS'
    >>> print s.decode('Shift_JIS')
    あいうえお

LICENSE
-------
BSD License

AUTHOR
------
Tsukasa Hamano <hamano@osstech.co.jp>
guess_tab.c generator was written by Shiro Kawai <shiro@acm.org>