PyUnicode_AsEncodedObject

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

  1. PyObject* PyUnicode_AsEncodedObject(PyObject* unicode, const(char)* encoding, const(char)* errors)
  2. alias PyUnicode_AsEncodedObject = PyUnicodeUCS2_AsEncodedObject
    version(!Python_3_3_Or_Later && Python_Unicode_UCS2)
    extern (C)
    alias PyUnicode_AsEncodedObject = PyUnicodeUCS2_AsEncodedObject
  3. alias PyUnicode_AsEncodedObject = PyUnicodeUCS4_AsEncodedObject

Meta