Skip to main content

What is this package

The charset detects character encodings using the Universal Charset Detector implemented by Mozilla. If the text cannot be converted with the charset detected using the Universal Charset Detector then it uses the chardet package.

Intallation

You can install using pip:

$ pip install charset

Example

In [1]: from charset import Detector, text_to_unicode, text_to_utf8

In [2]: det = Detector()

In [3]: input_text = open('input.txt').read()

In [3]: text1 = text_to_unicode(input_text)

In [4]: text2 = text_to_utf8(input_text)

Changelog

Version 1.0.1 (2013-11-20)

  • Modified setup.py.

  • Added a README.txt.

  • Added a MANIFEST.in to include data files missing in version 1.0.

  • Removed dependencies form cython and setuptools-cython.

  • Add dependency of chardet.

Version 1.0 (2013-04-21)

  • Initial version.

  • Support for character encoding detection.

Metadata

Release files for charset 1.0.1

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

Source distribution (sdist)

Source distribution for charset 1.0.1
File Size Uploaded
charset-1.0.1.tar.gz 189.7 kB Details

Release files / charset-1.0.1.tar.gz

Download URL charset-1.0.1.tar.gz
Size 189.7 kB
Tags Source
SHA-256 checksum
How to use checksums
320d58f82fa64e95700a04d726b4a5593985270d303f680807fd2faa89327503
BLAKE2b-256 checksum
How to use checksums
a6a42ba69b918bc2e02f598a9a88fb7314bab3e8e74043872d8d792869e006ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

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