PyUnicode_AsEncodedUnicode

Encodes a Unicode object and returns the result as Unicode object. */ /// Availability: >= 3.

Meta