Skip to main content

Python module to register all supported iconv codecs

Project description

iconv_codec: module to register codecs to encode/decode any char supported by system’s iconv command.

The codecs are registered in python and are available on all python functions that support an encoding parameter.

Usage:

After importing the module, just use the encoding with the ‘iconv:’ prefix. Examples:

>>> import iconv_codecs
>>> '\xa3\x85\xa2\xa3'.decode('iconv:CP284')
u'test'
>>> u'testing'.encode('iconv:CSEBCDICFISEA')
'\xa3\x85\xa2\xa3\x89\x95\x87'

Project details


Download files

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

Source Distribution

iconv_codecs-0.1a1.tar.gz (2.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page