Universal encoding detector for Python 3
.. image:: https://img.shields.io/travis/chardet/chardet/stable.svg :alt: Build status :target: https://travis-ci.org/chardet/chardet
.. image:: https://img.shields.io/coveralls/chardet/chardet/stable.svg :target: https://coveralls.io/r/chardet/chardet
.. image:: https://img.shields.io/pypi/v/chardet.svg :target: https://warehouse.python.org/project/chardet/ :alt: Latest version on PyPI
.. image:: https://img.shields.io/pypi/l/chardet.svg :alt: License
Detects
.. note:: Our ISO-8859-2 and windows-1250 (Hungarian) probers have been temporarily disabled until we can retrain the models.
Requires Python 3.7+.
Install from PyPI <https://pypi.org/project/chardet/>
_::
pip install chardet
For users, docs are now available at https://chardet.readthedocs.io/.
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
This is a continuation of Mark Pilgrim's excellent original chardet port from C, and Ian Cordasco <https://github.com/sigmavirus24>
's
charade <https://github.com/sigmavirus24/charade>
Python 3-compatible fork.
:maintainer: Dan Blanchard