History | View | Annotate | Download (4 kB)
udec: decode an object into a unicode object
pep8 fixes to snf-common
uenc: convert to repr(utf8) if encoding fails.
uenc: utility function for encoding unicode to str
1. Motivation.
Too often a programmer outputs an object that can either be str orunicode. The default python encoding of 'ascii' cannot handle all ofunicode text, but this will not crash until such a text is encountered....