PyDocs

Nav

Python Runtime Services

getfilesystemencoding

sys

function
  • getfilesystemencoding()
Return the encoding used to convert Unicode filenames to OS filenames.
Changed in 3.2, 3.6, 3.7
  • 3.2: getfilesystemencoding() result cannot be None anymore.
  • 3.6: Windows is no longer guaranteed to return 'mbcs'. See PEP 529 and _enablelegacywindowsfsencoding() for more information.
  • 3.7: Return 'utf-8' if the Python UTF-8 Mode is enabled.
0 Examples
No examples for sys/getfilesystemencoding.
See Also
No see-alsos for sys/getfilesystemencoding
0 Notes
No notes for getfilesystemencoding