Statistics
| Branch: | Tag: | Revision:

root / snf-common / synnefo / util / text.py @ fde2c1f7

History | View | Annotate | Download (4 kB)

# Date Author Comment
dd1089b7 02/14/2013 04:27 pm Giorgos Korfiatis

udec: decode an object into a unicode object

74d988b0 02/01/2013 04:00 pm Christos Stavrakakis

pep8 fixes to snf-common

3a6e0fd0 01/29/2013 11:26 am Georgios D. Tsoukalas

uenc: convert to repr(utf8) if encoding fails.

aff28f5f 01/25/2013 07:58 pm Georgios D. Tsoukalas

uenc: utility function for encoding unicode to str

1. Motivation.

Too often a programmer outputs an object that can either be str or
unicode. The default python encoding of 'ascii' cannot handle all of
unicode text, but this will not crash until such a text is encountered....