PyUnicode_EncodeFSDefault

Encode a Unicode object to Py_FileSystemDefaultEncoding with the "surrogateescape" error handler, and return bytes.

If Py_FileSystemDefaultEncoding is not set, fall back to the locale encoding. Availability: >= 3.2

version(Python_3_2_Or_Later)
extern (C)
PyUnicode_EncodeFSDefault

Meta