smartencoding

Python smart encoding (smart_unicode and other functions)


Keywords
smart_unicode, smart_text, smart_encode, smart, encoding, unicode
License
BSD-3-Clause
Install
pip install smartencoding==0.1

Documentation

smartencoding

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: