Hi, I wrote a major update of my PEP 741 “Python Configuration C API (second version)” to address most, if not all, requests in the previous discussion. => Read the updated PEP 741 <= See the Commit of the PEP 741 update. Changes (incomplete list): PyInitConfig_SetStr() and PyInitConfig_SetStrList() now expect UTF-8 encoded string, instead of strings encoded to the locale encoding. Add PyInitConfig_SetStrLocale() and PyInitConfig_SetStrLocaleList() functions which expect null-terminate...