sys.getfilesystemencoding()
Return the name of the encoding used to convert Unicode filenames into system file names. The result value depends on the operating system:
- On Mac OS X, the encoding is
'utf-8'
. - On Unix, the encoding is the user’s preference according to the result of nl_langinfo(CODESET).
- On Windows NT+, file names are Unicode natively, so no conversion is performed.
getfilesystemencoding()
still returns'mbcs'
, as this is the encoding that applications should use when they explicitly want to convert Unicode strings to byte strings that are equivalent when used as file names. - On Windows 9x, the encoding is
'mbcs'
.
Changed in version 3.2: getfilesystemencoding()
result cannot be None
anymore.
Please login to continue.