Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Python smart encoding (smart_unicode and other functions)

Project description

These functions are copied from the source code of Django 1.5b2. And provides smart functions for convertation into utf8 and other encodings without Django. For example, I use in the Flask.

https://secure.travis-ci.org/adw0rd/smartencoding.png

Installation:

pip install smartencoding

How to use:

from smartencoding import smart_unicode, smart_unicode_with_replace
print smart_unicode(some_string)
print smart_unicode_with_replace(broken_string)

See also:

Project details


Download files

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

Files for smartencoding, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size smartencoding-0.3.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page