Get the filesystem encoding: the encoding used with the filesystem error handler to convert between Unicode filenames and bytes filenames. The filesystem error handler is returned from getfilesystemencodeerrors().
Syntax
PYTHON
sys.getfilesystemencoding()
See Also
filesystem encodingfilesystem error handlergetfilesystemencodeerrors()os.fsencode()os.fsdecode()filesystem encoding and error handlerPyConfig_Read()filesystem_encoding