Terry J. Reedy <tjre...@udel.edu> added the comment:
I am replacing the text snippet screenshot with a link to the online doc: https://docs.python.org/3/c-api/init.html#c.Py_Initialize The only encoding python 'forces' in recent Python is utf-8 in utf-8 mode and on some systems. See https://docs.python.org/3/library/sys.html#sys.getfilesystemencoding. I am guessing that you are using *nix and that your locale uses gbk. I am closing because there is no usable description of a bug. I suggest asking on Python-list about how to do whatever it is you want. Start with your OS and version. ---------- nosy: +terry.reedy resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41653> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com