>>>>> Michael Goerz <[EMAIL PROTECTED]> (MG) wrote: >MG> if (ord(character) < 32) or (ord(character) > 128):
If you encode chars < 32 it seems more appropriate to also encode 127. Moreover your code is quadratic in the size of the string so if you use long strings it would be better to use join. -- Piet van Oostrum <[EMAIL PROTECTED]> URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4] Private email: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list