当前位置:网站首页>vscode输出中文乱码问题
vscode输出中文乱码问题
2022-07-31 07:25:00 【振予】
经过反复折腾,我还是失败了,呜呜呜,气死我了。
但是,最后经过实验验证,我发现能稳定的在windows那个小黑框里输出中文,不会出现乱码,在vscode内置的终端还是无法输出。那么说下如何搞:
1、插件,不用安装任何有关编码的插件,比如GBKtoUTF8。我就没有装这个。
2、需要设置下这里,或许你的是默认的。
3、在tasks.json的args字段里加上这一句:"-fexec-charset=GBK"
最后就ok了。如下图:
当然了,你得在我圈出的这个小黑终端输出,就是windows自带的那个。你只要配置了launch.json就可以, 如果不知道怎么配置,可以百度下,网上很多教程,我这里就不逼逼叨叨了。
边栏推荐
猜你喜欢
[Interview: Concurrency 37: Multithreading: Thread Pool] Custom Thread Pool
2022.07.24_Daily Question
MySQL安装到最后一步 write configuration file 失败 怎么办?及后安装步骤
Financial leasing business
动态顺序表的增删查改(C语言实现)
2022.07.20_Daily Question
2022.07.12_每日一题
New in Visual Studio: Low Priority Builds
PHP中 比较 0、false、null,‘‘ “
MySQL 5.7 安装教程(全步骤、保姆级教程)
随机推荐
2022.07.14_Daily Question
linux redis6.2.6配置文件
mysql插入新字段方法
MySql 5.7.38下载安装教程 ,并实现在Navicat操作MySql
shell/bash脚本命令教程
Zabbix6.2惊喜发布!特别优化中大型环境部署的性能!
【面试:并发篇38:多线程:线程池】ThreadPoolExecutor类的基本概念
MySQL 8.0.29 解压版安装教程(亲测有效)
2022.07.29_Daily Question
Zabbix6.2 Surprise Release!Especially optimize the performance of medium and large environment deployment!
2022.07.24_Daily Question
庐山谣寄卢侍御虚舟
MySQL installation to the last step in the write the configuration file failed?And after the installation steps
Vscode:Project-tree插件
PHP中 比较 0、false、null,‘‘ “
Linux redis6.2.6 configuration file
Visual Studio新功能出炉:低优先级构建
2022.07.12_Daily Question
解决win11/win10在登陆界面(解锁界面)点击获取每日壁纸无效的问题 - get Daily Lockscreen and Wallpaper - Win11/10的登录界面背景图片在哪里?
Reimbursement Process | By Tianfang