Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Clases for charset detection. Uses chardet and mozilla universal charset detection.

Project Description

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.


You can install using pip:

$ pip install charset


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)


Version 1.0.1 (2013-11-20)

  • Modified
  • Added a README.txt.
  • Added a 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.
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
charset-1.0.1.tar.gz (189.7 kB) Copy SHA256 Checksum SHA256 Source Nov 20, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting