wrong encoding only in debug console
已回答
hi all,
I meet a problem when I'm trying to print unicode to console. I've searched the communite but my situation is a little different.
the encoder is right in run console, but not correct in debug consle...


请先登录再写评论。
Do you use the latest PyCharm version (2022.3 at the moment)?
Its 2022.2.4 right now. should I upgrade at first?
Emm.... I upgrade to 2022.3 just now, but nothing changed....
Please run the following code in the Debugger's Console:
import os
os.getenv('PYTHONIOENCODING')
What is the output?
Does workaround from https://youtrack.jetbrains.com/issue/PY-57519/Wrong-encoding-in-Python-console-in-2022.2.4-and-2022.3-RC help?
that's it! its gbk in my settings... Thx for the quick reply!