mirror of
https://github.com/python/cpython.git
synced 2025-08-23 10:16:01 +00:00
Describe 'surrogateescape' in the documentation.
Also, improve some docstring descriptions of the 'errors' parameter. Closes #14015.
This commit is contained in:
parent
893f2ffc7c
commit
c7b6c50f29
5 changed files with 41 additions and 15 deletions
|
@ -105,6 +105,7 @@ class Codec:
|
|||
Python will use the official U+FFFD REPLACEMENT
|
||||
CHARACTER for the builtin Unicode codecs on
|
||||
decoding and '?' on encoding.
|
||||
'surrogateescape' - replace with private codepoints U+DCnn.
|
||||
'xmlcharrefreplace' - Replace with the appropriate XML
|
||||
character reference (only for encoding).
|
||||
'backslashreplace' - Replace with backslashed escape sequences
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue