[英]Get rid of unicode characters in VSCode Interactive Python Environment
I'm using VSCode Version: 1.46.1
on Mac OS Catalina.我在 Mac OS Catalina 上使用 VSCode
Version: 1.46.1
。 I'm using the built-in Python interactive terminal Python 3.7.4
Whenever I print strings, it shows up with unicode, making it difficult to read, like so:我正在使用内置的 Python 交互式终端
Python 3.7.4
每当我打印字符串时,它都会显示为 unicode,使其难以阅读,如下所示:
\\u201cI like what we have.\\u201d It is quiet and there is somebody else in the room. I tell my dog that I need to go and he says, \\u201cjust alright.\\u201d ~~I am hungry.\\n\\n
I have tried every flavor of un-escaping escaped characters.我已经尝试了各种无法转义的转义字符。 See here:
看这里:
Unescaping escaped characters in a string using Python 3.2 使用 Python 3.2 对字符串中的转义字符进行转义
And和
Using unicode character u201c 使用 unicode 字符 u201c
But to no avail.但无济于事。 I think the problem lies in the encoding options built into VSCode itself, but I'm not sure how to modify that.
我认为问题在于 VSCode 本身内置的编码选项,但我不确定如何修改它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.