PyUnicode_AsEncodedString

Encodes a Unicode object and returns the result as Python string object.

  1. PyObject* PyUnicode_AsEncodedString(PyObject* unicode, const(char)* encoding, const(char)* errors)
  2. alias PyUnicode_AsEncodedString = PyUnicodeUCS2_AsEncodedString
  3. alias PyUnicode_AsEncodedString = PyUnicodeUCS4_AsEncodedString
    version(!Python_3_3_Or_Later && !Python_Unicode_UCS2)
    extern (C)
    alias PyUnicode_AsEncodedString = PyUnicodeUCS4_AsEncodedString

Meta