unicode(s, enc).encode(enc) == s ?

mario mario at ruggier.org
Thu Dec 27 08:46:47 EST 2007


I have checks in code, to ensure a decode/encode cycle returns the
original string.

Given no UnicodeErrors, are there any cases for the following not to
be True?

    unicode(s, enc).encode(enc) == s

mario




More information about the Python-list mailing list