/
Depends on
- dh-python (dh-sequence-python3, pybuild-plugin-pyproject)
- pytest (python3-pytest)
- python-hypothesis (python3-hypothesis)
- python3-defaults (python3-all)
- setuptools (python3-setuptools)
- sphinx (python3-sphinx)
- sphinx-rtd-theme (python3-sphinx-rtd-theme)
- debhelper-compat, python-chardet
Used by
- afew 3.0.1-9
- apertium-apy 0.13.0-2
- asammdf 8.5.2-3
- beangulp 0.2.0-4
- beautifulsoup4 4.14.3-2
- beautifulsoup4 4.15.0-1
- binaryornot 0.4.4+git20230412.ac4f56e+dfsg-2
- bleachbit 6.0.0-1
- camelot-py 0.11.0-6
- cedar-backup3 3.12.0-1
- codespell 2.4.1-1
- codespell 2.4.2-1
- cvise 2.12.0-4
- datalad-container 1.2.6-3
- deluge 2.2.1~dev0+20260307-1
- diff-cover 10.2.0-1
- doxypypy 0.8.8.7-3
- eric 24.8+ds1-1
- geophar 18.10+dfsg1-8
- html5-parser 0.4.12+ds1-1
Show 31 more
- html5lib 1.2-3
- html5lib 1.2-4
- httpx 0.28.1-1
- isbg 2.3.1-6
- kitchen 1.2.6-9
- klaus 2.0.3-1
- limnoria 2026.5.8-1
- mcomix 3.1.1-2
- odoo 19.0.0+dfsg-1
- offpunk 3.1-3
- pygments 2.19.2+dfsg-1
- python-charset-normalizer 3.4.7-1
- requests 2.32.5+dfsg-1
- pydot 4.0.1-1
- pynag 1.1.2+dfsg-4
- python-clevercsv 0.8.5+ds-1
- python-discogs-client 2.8-1
- python-doc8 0.10.1-5
- python-hyperion-py 0.7.5-6
- python-mbstrdecoder 1.1.0-6
- python-mercantile 1.2.1-8
- python-rjsmin 1.2.5+dfsg1-2
- python-webdavclient 3.14.6-4
- ranger 1.9.4-2.1
- readability 0.8.4.1+dfsg1-1
- sabctools 9.6.3-1
- bleachbit 6.0.2-1
- beangulp 0.2.0-7
- codespell 2.4.3-2
- html5-parser 0.4.12+ds1-2
- httpx 0.28.1-1.1
README (full)
Chardet: 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, CP932, ISO-2022-JP (Japanese) - EUC-KR, ISO-2022-KR, Johab (Korean) - KOI8-R, MacCyrillic, IBM855, IBM866, ISO-8859-5, windows-1251 (Cyrillic) - ISO-8859-5, windows-1251 (Bulgarian) - ISO-8859-1, windows-1252, MacRoman (Western European languages) - ISO-8859-7, windows-1253 (Greek) - ISO-8859-8, windows-1255 (Visual and Logical Hebrew) - TIS-620 (Thai)
Requires Python 3.7+.
Installation
Install from PyPI::
pip install chardet
Documentation
For users, docs are now available at https://chardet.readthedocs.io/.
Command-line Tool
chardet comes with a command-line script which reports on the encodings of one or more files::
% chardetect somefile someotherfile somefile: windows-1252 with confidence 0.5 someotherfile: ascii with confidence 1.0
About
This is a continuation of Mark Pilgrim's excellent original chardet port from C, and Ian Cordasco's charade Python 3-compatible fork.
:maintainer: Dan Blanchard
| dir | .github/ |
| dir | chardet/ |
| dir | debian/ |
| dir | docs/ |
| dir | tests/ |
| file | .git-blame-ignore-revs |
| file | .gitattributes |
| file | .gitignore |
| file | .pre-commit-config.yaml |
| file | .prospector.yaml |
| file | LICENSE |
| file | MANIFEST.in |
| file | NOTES.rst |
| file | README.rst |
| file | bench.py |
| file | convert_language_model.py |
| file | pyproject.toml |
| file | setup.cfg |
| file | test.py |