NO LONGER MAINTAINED. USE chardet/chardet. Fork of chardet to support Python 2 and 3 in one code base.
Pull request Compare This branch is 56 commits ahead of dcramer:master.
Failed to load latest commit information.
bin * rename _console to _cli Sep 20, 2013
charade * rename _console to _cli Sep 20, 2013
.gitignore use setuptools entry points for better windows support Sep 20, 2013
.travis.yml Travis removed 3.1 support a while ago Feb 4, 2013
HISTORY.rst * rename _console to _cli Sep 20, 2013
LICENSE Add LGPL because it should be here. Nov 28, 2012 Ship tests and NOTES with PyPI distribution. Feb 12, 2013
NOTES.rst Add some NOTES for future reference Feb 4, 2013
README.rst Add notice to readme too Dec 29, 2014
setup.cfg Initial commit with fix for utf8prober when char is out of range Oct 25, 2011 * rename _console to _cli Sep 20, 2013


No Longer Maintained


Charade: The Universal character encoding detector

  • ASCII, UTF-8, UTF-16 (2 variants), UTF-32 (4 variants)
  • Big5, GB2312, EUC-TW, HZ-GB-2312, ISO-2022-CN (Traditional and Simplified Chinese)
  • EUC-JP, SHIFT_JIS, ISO-2022-JP (Japanese)
  • EUC-KR, ISO-2022-KR (Korean)
  • KOI8-R, MacCyrillic, IBM855, IBM866, ISO-8859-5, windows-1251 (Cyrillic)
  • ISO-8859-2, windows-1250 (Hungarian)
  • ISO-8859-5, windows-1251 (Bulgarian)
  • windows-1252 (English)
  • ISO-8859-7, windows-1253 (Greek)
  • ISO-8859-8, windows-1255 (Visual and Logical Hebrew)
  • TIS-620 (Thai)

Requires Python 2.6 or later

Command-line Tool

chardet comes with a command-line script which reports on the encodings of one or more files:

% charade somefile someotherfile
somefile: windows-1252 with confidence 0.5
someotherfile: ascii with confidence 1.0


This is a port of Mark Pilgrim's excellent chardet. Previous two versions needed to be maintained: one that supported python 2.x and one that supported python 3.x. With the minor amount of work placed into this port, charade now supports both in one codebase.

The base for the work was Mark's last available copy of the chardet source for python 3000.

The Reason

Does everything have to have a reason? No, but in this case the reason was to help out requests and anyone else who sorely needed this.

What about x, y, or z?

If x, y, or z (a colloquialism for other projects that may do the same thing) do exist and indeed existed before charade, then I'm disappointed that they didn't make themselves better known. It would have saved me quite a few hours.

maintainer:Ian Cordasco