From: Victor Stinner Date: Sun, 12 Sep 2010 20:32:57 +0000 (+0000) Subject: Document changes on mbcs encoding X-Git-Tag: v3.2a3~299 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0cbec571ae01b83923165b38d0295e1467b5efc1;p=thirdparty%2FPython%2Fcpython.git Document changes on mbcs encoding --- diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst index bd38a7e123cb..7d8b2e61f2d1 100644 --- a/Doc/whatsnew/3.2.rst +++ b/Doc/whatsnew/3.2.rst @@ -544,3 +544,10 @@ require changes to your code: opaque C pointers in Python objects, the :ctype:`PyCapsule` API should be used instead; the new type has a well-defined interface for passing typing safety information and a less complicated signature for calling a destructor. + +* mbcs encoding doesn't ignore the error handler argument anymore. By default + (strict mode), it raises an UnicodeDecodeError on undecodable byte sequence + and UnicodeEncodeError on unencodable character. To get the mbcs encoding of + Python 3.1, use ``'ignore'`` error handler to decode and ``'replace'`` error + handler to encode. mbcs now supports ``'strict'`` and ``'ignore'`` error + handlers for decoding, and ``'strict'`` and ``'replace'`` for encoding.