PyUnicode_Encode

Encodes a Py_UNICODE buffer of the given size and returns a Python string object.

Meta