PyUnicode_AsUTF16String

Returns a Python string using the UTF-16 encoding in native byte order. The string always starts with a BOM mark.

  1. PyObject* PyUnicode_AsUTF16String(PyObject* unicode)
    version(Python_3_3_Or_Later)
    extern (C)
    PyUnicode_AsUTF16String
  2. alias PyUnicode_AsUTF16String = PyUnicodeUCS2_AsUTF16String
  3. alias PyUnicode_AsUTF16String = PyUnicodeUCS4_AsUTF16String

Meta