aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Doc/library/io.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/io.rst')
-rw-r--r--Doc/library/io.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/io.rst b/Doc/library/io.rst
index fcd7afea354..3aa2f35f05e 100644
--- a/Doc/library/io.rst
+++ b/Doc/library/io.rst
@@ -965,7 +965,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.