mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-91156: Document how TextIOWrapper interacts with UTF-8 mode (GH-132885)
Document how TextIOWrapper interacts with UTF-8 mode
(cherry picked from commit 245cd6c532)
Co-authored-by: Malcolm Smith <smith@chaquo.com>
This commit is contained in:
parent
8a05dbe004
commit
bb0a8575a7
1 changed files with 2 additions and 1 deletions
|
|
@ -950,7 +950,8 @@ Text I/O
|
|||
:class:`TextIOBase`.
|
||||
|
||||
*encoding* gives the name of the encoding that the stream will be decoded or
|
||||
encoded with. It defaults to :func:`locale.getencoding`.
|
||||
encoded with. In :ref:`UTF-8 Mode <utf8-mode>`, this defaults to UTF-8.
|
||||
Otherwise, it defaults to :func:`locale.getencoding`.
|
||||
``encoding="locale"`` can be used to specify the current locale's encoding
|
||||
explicitly. See :ref:`io-text-encoding` for more information.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue