PyUnicode_Decode

Create a Unicode object by decoding the encoded string s of the given size.

  1. PyObject* PyUnicode_Decode(const(char)* s, Py_ssize_t size, const(char)* encoding, const(char)* errors)
    version(Python_3_3_Or_Later)
    extern (C)
    PyUnicode_Decode
    (
    const(char)* s
    ,,
    const(char)* encoding
    ,
    const(char)* errors
    )
  2. alias PyUnicode_Decode = PyUnicodeUCS2_Decode
  3. alias PyUnicode_Decode = PyUnicodeUCS4_Decode

Parameters

s const(char)*

encoded string

size Py_ssize_t

size of buffer

encoding const(char)*

encoding

errors const(char)*

error handling

Meta