New submission from twoone3 <3197653...@qq.com>:

When I set Py_LegacyWindowsStdioFlag to 0, after Py_Initialize, the console 
will forcibly change what encoding is displayed. At this time, my standard 
stream output is utf-8, py's print is utf-8, chcp 65001 is useless, and still 
garbled.  When I set Py_LegacyWindowsStdioFlag to 1, the console encoding is 
mbcs, the standard stream output is UTF-8 and not garbled, but the print of py 
is gbk encoding, and my system is Windows server 2016. I hope that 
Py_Initialize will not affect the console in subsequent versions.  Do any 
behavior, I suggest you test the coding problem in Chinese

----------
components: C API
messages: 378004
nosy: twoone3
priority: normal
severity: normal
status: open
title: Py_Initialize affects the console
type: behavior
versions: Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41941>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to