diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst index 322b9e4d251e76..a972c27aac81e7 100644 --- a/Doc/c-api/init.rst +++ b/Doc/c-api/init.rst @@ -221,6 +221,13 @@ to 1 and ``-bb`` sets :c:data:`Py_BytesWarningFlag` to 2. Set by the :option:`-v` option and the :envvar:`PYTHONVERBOSE` environment variable. +.. c:var:: int Py_UTF8Mode + + Enables the UTF-8 Mode. + + If set to 1, enable the UTF-8 Mode. + If set to 0, disable the UTF-8 Mode. + If set to -1, look for the :option:`-x` option and the :envvar:`PYTHONUTF8` environment variable. Initializing and finalizing the interpreter ===========================================