weblib.encoding

weblib.encoding.make_str(value, encoding='utf-8', errors='strict')[source]

Normalize unicode/byte string to byte string.

weblib.encoding.make_unicode(value, encoding='utf-8', errors='strict')[source]

Normalize unicode/byte string to unicode string.

weblib.encoding.smart_str(value, encoding='utf-8', errors='strict')

Normalize unicode/byte string to byte string.

weblib.encoding.smart_unicode(value, encoding='utf-8', errors='strict')

Normalize unicode/byte string to unicode string.