Skip to main content
File added late

1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.

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 (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

Installation

Install from PyPI:

pip install chardet

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 chardet. Previously, two versions needed to be maintained: one that supported python 2.x and one that supported python 3.x. We’ve recently merged with Ian Cordasco’s charade fork, so now we have one coherent version that works for Python 2.6+.

maintainer:

Dan Blanchard

Metadata

Release files for chardet 2.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for chardet 2.3.0
File Size Uploaded
chardet-2.3.0.tar.gz 164.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chardet 2.3.0
File Interpreter ABI Platform
chardet-2.3.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 345.2 kB

Release files / chardet-2.3.0.tar.gz

Download URL chardet-2.3.0.tar.gz
Size 164.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e53e38b3a4afe6d1132de62b7400a4ac363452dc5dfcf8d88e8e0cce663c68aa
BLAKE2b-256 checksum
How to use checksums
7d874e3a3f38b2f5c578ce44f8dc2aa053217de9f0b6d737739b0ddac38ed237
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / chardet-2.3.0-py2.py3-none-any.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL chardet-2.3.0-py2.py3-none-any.whl
Size 180.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
aaf514bde38020b4f1e42c6a6e141f2827a8a58ccfc3b22b6ff5a1a4b50be56e
BLAKE2b-256 checksum
How to use checksums
7e5c605ca2daa5cf21c87690d8fe6ab05a6f2278c451f4ede6456dd26453f4bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page