Charade: The Universal character encoding detector
- Detects
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
About
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
1.0.3 – 2012-01-17
Rename chardet.py script to charade
Metadata
Release files for charade 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| charade-1.0.3.tar.gz | 168.5 kB | Without provenance | Details for charade-1.0.3.tar.gz |
Release files / charade-1.0.3.tar.gz
| Download URL | charade-1.0.3.tar.gz |
|---|---|
| Size | 168.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a607146d151005904f3fd8335e3dc89af214453f0d3a29580e1eb0e67e6c3d7f
|
|
BLAKE2b-256 checksum How to use checksums |
7426565610c87e951b8a3182df890589c280a16c5897cfbca97eebd73705e0c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for charade 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.