mirror of
https://github.com/python/cpython.git
synced 2025-10-03 13:45:29 +00:00
bpo-44522: Fix inaccurate information in open() function (GH-27650) (GH-27682)
- Use "Low surrogate code units" instead of "Unicode Private Use Area"
(cherry picked from commit b05e9b63fc
)
Co-authored-by: meowmeowmeowcat <meowmeowcat1211@gmail.com>
This commit is contained in:
parent
ede221e517
commit
037ef8d6d9
1 changed files with 3 additions and 3 deletions
|
@ -1150,9 +1150,9 @@ are always available. They are listed here in alphabetical order.
|
||||||
* ``'replace'`` causes a replacement marker (such as ``'?'``) to be inserted
|
* ``'replace'`` causes a replacement marker (such as ``'?'``) to be inserted
|
||||||
where there is malformed data.
|
where there is malformed data.
|
||||||
|
|
||||||
* ``'surrogateescape'`` will represent any incorrect bytes as code
|
* ``'surrogateescape'`` will represent any incorrect bytes as low
|
||||||
points in the Unicode Private Use Area ranging from U+DC80 to
|
surrogate code units ranging from U+DC80 to U+DCFF.
|
||||||
U+DCFF. These private code points will then be turned back into
|
These surrogate code units will then be turned back into
|
||||||
the same bytes when the ``surrogateescape`` error handler is used
|
the same bytes when the ``surrogateescape`` error handler is used
|
||||||
when writing data. This is useful for processing files in an
|
when writing data. This is useful for processing files in an
|
||||||
unknown encoding.
|
unknown encoding.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue