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!

Python module to register all supported iconv codecs

Project Description

This module will register GNU iconv supported codecs for usage inside python.


Just register the codec you want:

>>> import iconv_codecs
>>> iconv_codecs.register('ansi_x3.110-1983')

Then you can use it:

>>> u'testing'.encode('ansi_x3.110-1983')

Alternatively you can use them without registering, by using the iconv prefix:

>>> '\x87'.decode('iconv:CP860')
>>> u'testing'.encode('iconv:CSEBCDICFISEA')

To register all python unsupported codecs, just call register() without parameters:

>>> iconv_codecs.register()
>>> u'\xe7'.encode('utf32')

That will poll iconv for a list of codecs it supports and register the ones python doesn’t support already.

You can read full API documentation here:

Release History

This version
History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(3.5 kB) Copy SHA256 Hash SHA256
Source None Mar 5, 2009

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers