Make differences between status quo and proposed change

explicit.
This commit is contained in:
Martin v. Löwis 2009-04-29 20:01:33 +00:00
parent 69b79629a7
commit 1d101b9dbc
1 changed files with 3 additions and 2 deletions

View File

@ -67,8 +67,9 @@ character-oriented APIs, allowing direct conversion of the
environmental data to Python str objects.
On POSIX systems, Python currently applies the locale's encoding to
convert the byte data to Unicode. Non-decodable bytes will be
represented as lone half surrogate codes U+DCxx.
convert the byte data to Unicode, failing for characters that cannot
be decoded. With this PEP, non-decodable bytes will be represented as
lone half surrogate codes U+DCxx.
To convert non-decodable bytes, a new error handler "python-escape" is
introduced, which produces these half surrogates. On encoding, the