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.

Filename, size & hash SHA256 hash help File type Python version Upload date
iconv_codecs-0.1a1.tar.gz (2.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page