Definition
Encoding and error handler used by Python to decode bytes from the operating system and encode Unicode to the operating system.
The filesystem encoding must guarantee to successfully decode all bytes
below 128. If the file system encoding fails to provide this guarantee,
API functions can raise UnicodeError.
The sys.getfilesystemencoding() and
sys.getfilesystemencodeerrors() functions can be used to get the
filesystem encoding and error handler.
The filesystem encoding and error handler are configured at
Python startup by the PyConfig_Read() function: see
filesystem_encoding and
filesystem_errors members of PyConfig.
See also the locale encoding.