]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#6648: mention surrogateescape handler where all standard handlers are listed.
authorGeorg Brandl <georg@python.org>
Thu, 6 Aug 2009 17:51:03 +0000 (17:51 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 6 Aug 2009 17:51:03 +0000 (17:51 +0000)
Doc/library/codecs.rst

index c5283ed1992651c932ff9a1247608804d02fa518..5d045e035a244a386b5970e219a85f49e8ef9ff7 100644 (file)
@@ -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