PyUnicode_SetDefaultEncoding

Sets the currently active default encoding.

Returns 0 on success, -1 in case of an error.

  1. int PyUnicode_SetDefaultEncoding(const(char)* encoding)
    version(Python_3_3_Or_Later)
    int
    PyUnicode_SetDefaultEncoding
    (
    const(char)* encoding
    )
  2. alias PyUnicode_SetDefaultEncoding = PyUnicodeUCS2_SetDefaultEncoding
  3. alias PyUnicode_SetDefaultEncoding = PyUnicodeUCS4_SetDefaultEncoding

Meta