Skip to main content

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.

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)

It’s all!

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

smartencoding-0.2b.tar.gz (2.4 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