PyUnicode_AsEncodedObject

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

Meta