We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd2ed7c commit 245cd6cCopy full SHA for 245cd6c
Doc/library/io.rst
@@ -965,7 +965,8 @@ Text I/O
965
:class:`TextIOBase`.
966
967
*encoding* gives the name of the encoding that the stream will be decoded or
968
- encoded with. It defaults to :func:`locale.getencoding`.
+ encoded with. In :ref:`UTF-8 Mode <utf8-mode>`, this defaults to UTF-8.
969
+ Otherwise, it defaults to :func:`locale.getencoding`.
970
``encoding="locale"`` can be used to specify the current locale's encoding
971
explicitly. See :ref:`io-text-encoding` for more information.
972
0 commit comments