We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a05dbe commit bb0a857Copy full SHA for bb0a857
Doc/library/io.rst
@@ -950,7 +950,8 @@ Text I/O
950
:class:`TextIOBase`.
951
952
*encoding* gives the name of the encoding that the stream will be decoded or
953
- encoded with. It defaults to :func:`locale.getencoding`.
+ encoded with. In :ref:`UTF-8 Mode <utf8-mode>`, this defaults to UTF-8.
954
+ Otherwise, it defaults to :func:`locale.getencoding`.
955
``encoding="locale"`` can be used to specify the current locale's encoding
956
explicitly. See :ref:`io-text-encoding` for more information.
957
0 commit comments