ID EN
Sys

_enablelegacywindowsfsencoding

Python 3.11

Changes the filesystem encoding and error handler to ‘mbcs’ and ‘replace’ respectively, for consistency with versions of Python prior to 3.6.

Syntax

PYTHON
sys._enablelegacywindowsfsencoding()

See Also

filesystem encoding and error handler PYTHONLEGACYWINDOWSFSENCODING sys.getfilesystemencoding() sys.getfilesystemencodeerrors() Availability