当前位置:网站首页>vscode输出中文乱码问题
vscode输出中文乱码问题
2022-07-31 07:25:00 【振予】
经过反复折腾,我还是失败了,呜呜呜,气死我了。
但是,最后经过实验验证,我发现能稳定的在windows那个小黑框里输出中文,不会出现乱码,在vscode内置的终端还是无法输出。那么说下如何搞:
1、插件,不用安装任何有关编码的插件,比如GBKtoUTF8。我就没有装这个。
2、需要设置下这里,或许你的是默认的。
3、在tasks.json的args字段里加上这一句:"-fexec-charset=GBK"
最后就ok了。如下图:
当然了,你得在我圈出的这个小黑终端输出,就是windows自带的那个。你只要配置了launch.json就可以, 如果不知道怎么配置,可以百度下,网上很多教程,我这里就不逼逼叨叨了。
边栏推荐
猜你喜欢
随机推荐
sort函数(快速排列)的使用方法
LED flashing on CY7C68013A
Calculation example of matlab program iEEE9 node system for power flow calculation of AC-DC hybrid system based on alternate iteration method
Matlab学习第一天(持续更新中)
7/28-7/29 期望+思维+后缀数组+ST表
"C language" frog jumping steps recursion problem
2022.07.26_每日一题
The Ballad of Lushan Sends Lu's Servant to the Void Boat
Failure scenarios of @Transactional annotations
MySQL detailed explanation
XSS详解
链表实现及任务调度
2022.07.29_Daily Question
基于交替迭代法的交直流混合系统潮流计算matlab程序iEEE9节点系统算例
Embedded system driver primary [2] - _ parameters and dependencies under the kernel module
First acquaintance with NK-RTU980 development board
MySQL installation to the last step in the write the configuration file failed?And after the installation steps
《C语言小游戏》扫雷
DAY18:XSS 漏洞
Ceph单节点部署