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)
  2. alias PyUnicode_SetDefaultEncoding = PyUnicodeUCS2_SetDefaultEncoding
  3. alias PyUnicode_SetDefaultEncoding = PyUnicodeUCS4_SetDefaultEncoding
    version(!Python_3_3_Or_Later && !Python_Unicode_UCS2)
    extern (C)
    alias PyUnicode_SetDefaultEncoding = PyUnicodeUCS4_SetDefaultEncoding

Meta