Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd2ed7c commit 245cd6cCopy full SHA for 245cd6c
1 file changed
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