wrong encoding only in debug console

Answered

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...

0
5 comments

Do you use the latest PyCharm version (2022.3 at the moment)?

0

Its 2022.2.4 right now. should I upgrade at first?

0

Emm.... I upgrade to 2022.3 just now, but nothing changed....

0

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?

0

that's it! its gbk in my settings... Thx for the quick reply!

0

Please sign in to leave a comment.