We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
python
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent c651275 commit 31e197eCopy full SHA for 31e197e
Doc/c-api/init.rst
@@ -207,6 +207,20 @@ to 1 and ``-bb`` sets :c:data:`Py_BytesWarningFlag` to 2.
207
Set by the :option:`-u` option and the :envvar:`PYTHONUNBUFFERED`
208
environment variable.
209
210
+.. c:var:: Py_UTF8Mode
211
+
212
+ Enable Cpython utf-8 mode, which ignores the locale settings, and
213
+ uses the UTF-8 encoding by default; changes `sys.stdin` and
214
+ `sys.stdout` error handlers to ``surrogateescape``. By default,
215
+ it is enabled in the POSIX locale.
216
217
+ Set by the :option:`-X` ``utf8`` option and the :envvar:`PYTHONUTF8`
218
+ environment variable.
219
220
+ See :pep:`540` for more details.
221
222
+ .. versionadded:: 3.7
223
224
.. c:var:: Py_VerboseFlag
225
226
Print a message each time a module is initialized, showing the place
0 commit comments