Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

Usage:

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')
'testing'

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

>>> '\x87'.decode('iconv:CP860')
u'\xe7'
>>> u'testing'.encode('iconv:CSEBCDICFISEA')
'\xa3\x85\xa2\xa3\x89\x95\x87'

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

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

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: http://packages.python.org/iconv_codecs/

Metadata

Release files for iconv_codecs 0.2a1

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

Source distribution (sdist)

Source distribution for iconv_codecs 0.2a1
File Size Uploaded
iconv_codecs-0.2a1.tar.gz 3.5 kB Details

Release files / iconv_codecs-0.2a1.tar.gz

Download URL iconv_codecs-0.2a1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4b467137b9e0507c5d27d0e936dc0dd04d252d28ab25e24df605cfbdca3e5008
BLAKE2b-256 checksum
How to use checksums
b9884b56284e9c0871d3e2bd98642b99825df8e3984fa478b631aca4d0573c58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2a1 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