Make differences between status quo and proposed change
explicit.
This commit is contained in:
parent
69b79629a7
commit
1d101b9dbc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue