[Python-checkins] r74334 - python/branches/py3k/Doc/library/codecs.rst

georg.brandl python-checkins at python.org
Thu Aug 6 19:51:04 CEST 2009


Author: georg.brandl
Date: Thu Aug 6 19:51:03 2009
New Revision: 74334
Log:
#6648: mention surrogateescape handler where all standard handlers are listed.
Modified:
 python/branches/py3k/Doc/library/codecs.rst
Modified: python/branches/py3k/Doc/library/codecs.rst
==============================================================================
--- python/branches/py3k/Doc/library/codecs.rst	(original)
+++ python/branches/py3k/Doc/library/codecs.rst	Thu Aug 6 19:51:03 2009
@@ -72,9 +72,10 @@
 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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /