[Python-Dev] Re: Regression in unicodestr.encode()?

François Pinard pinard@iro.umontreal.ca
09 Apr 2002 18:15:39 -0400

[Barry A. Warsaw]

> My very limited Tim-enlightened understanding is that encoding a string
> to UTF-8 should never produce a string with NULs.

Besides the fact that NULs encode to themselves.  In fact, 0-127 encode to
themselves, and are never produced otherwise.  Also, 254 and 255 are never
produced, I heard that some use these to escape out within an UTF-8 string.

François Pinard   http://www.iro.umontreal.ca/~pinard