ID EN
Sys

getfilesystemencoding

Python 3.11

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 encoding filesystem error handler getfilesystemencodeerrors() os.fsencode() os.fsdecode() filesystem encoding and error handler PyConfig_Read() filesystem_encoding