diff options
author | Georg Brandl <georg@python.org> | 2009-08-06 17:51:03 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-08-06 17:51:03 (GMT) |
commit | 090e30f0f23aa1b2675616081fd767649fd4c111 (patch) | |
tree | 7c1497d8cc08e2da107c746b3941bb1cd21d60a0 /Doc/library/codecs.rst | |
parent | ea1158f9f33fe5a673cd8e128fcc85c26b45ea67 (diff) | |
download | cpython-090e30f0f23aa1b2675616081fd767649fd4c111.zip cpython-090e30f0f23aa1b2675616081fd767649fd4c111.tar.gz cpython-090e30f0f23aa1b2675616081fd767649fd4c111.tar.bz2 |
#6648: mention surrogateescape handler where all standard handlers are listed.
Diffstat (limited to 'Doc/library/codecs.rst')
-rw-r--r-- | Doc/library/codecs.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst index c5283ed..5d045e0 100644 --- a/Doc/library/codecs.rst +++ b/Doc/library/codecs.rst @@ -72,9 +72,10 @@ It defines the following functions: encoding error), ``'replace'`` (replace malformed data with a suitable replacement marker, such as ``'?'``), ``'ignore'`` (ignore malformed data and continue without further notice), ``'xmlcharrefreplace'`` (replace with the - appropriate XML character reference (for encoding only)) and - ``'backslashreplace'`` (replace with backslashed escape sequences (for encoding - only)) as well as any other error handling name defined via + appropriate XML character reference (for encoding only)), + ``'backslashreplace'`` (replace with backslashed escape sequences (for + encoding only)), ``'surrogateescape'`` (replae with surrogate U+DCxx, see + :pep:`383`) as well as any other error handling name defined via :func:`register_error`. In case a search function cannot find a given encoding, it should return |