Skip to content

解决 vscode 中文乱码 windows11 console.log 中文乱码

修复步骤:

1. 按一下 Win 键 - 输入区域

alt text

2. 选择顶部 管理 - 更改系统区域设置

alt text

3. 勾选 Beta版:使用Unicode UTF-8 提供全球语言支持(U) - 点击确定 然后重启电脑即可

alt text

4. 尝试一下 - console.log("中文字符") 正常情况

alt text

参考

https://blog.csdn.net/weixin_42960907/article/details/136020766