diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-06-16 23:33:54 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-06-16 23:33:54 (GMT) |
commit | 554f3f0081fc8f3561b031d957ffbab1034d8b83 (patch) | |
tree | f329005e253141249813de35f3f89ea2c979809f /Doc/library/codecs.rst | |
parent | 79ee19f3db964733d4fe94184dbb65bc819c65ce (diff) | |
download | cpython-554f3f0081fc8f3561b031d957ffbab1034d8b83.zip cpython-554f3f0081fc8f3561b031d957ffbab1034d8b83.tar.gz cpython-554f3f0081fc8f3561b031d957ffbab1034d8b83.tar.bz2 |
Issue #850997: mbcs encoding (Windows only) handles errors argument: strict
mode raises unicode errors. The encoder only supports "strict" and "replace"
error handlers, the decoder only supports "strict" and "ignore" error handlers.
Diffstat (limited to 'Doc/library/codecs.rst')
-rw-r--r-- | Doc/library/codecs.rst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst index 13e86a2..853cc78 100644 --- a/Doc/library/codecs.rst +++ b/Doc/library/codecs.rst @@ -1223,6 +1223,23 @@ functions can be used directly if desired. Convert a label to Unicode, as specified in :rfc:`3490`. +:mod:`encodings.mbcs` --- Windows ANSI codepage +----------------------------------------------- + +.. module:: encodings.mbcs + :synopsis: Windows ANSI codepage + +Encode operand according to the ANSI codepage (CP_ACP). This codec only +supports ``'strict'`` and ``'replace'`` error handlers to encode, and +``'strict'`` and ``'ignore'`` error handlers to decode. + +Availability: Windows only. + +.. versionchanged:: 3.2 + Before 3.2, the *errors* argument was ignored; ``'replace'`` was always used + to encode, and ``'ignore'`` to decode. + + :mod:`encodings.utf_8_sig` --- UTF-8 codec with BOM signature ------------------------------------------------------------- |