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.

version(Python_3_2_Or_Later)
PyUnicode_EncodeFSDefault

Meta