Sublime3 [Decode error - output not utf-8]
1、我们用到的C/C++编译器使用的是gcc/g++,所以需要下载安装MinGW.安装时尽量避免中文路径.WIN7及低版本Windows:右击我的电脑,点属性->高级->膣默髻僳环境变量。然后:在PATH里加入C:\MinGW\bin;<--(视情况而定,我安装在E盘,我的就是"E:\Program Files (x86)\mingw\bin;")如果里面还有其他的变量,记得要加分号,分号得在英文输入模式下输入的。2、新建LIBRARY_PATH变量,如果有的话,在值中加入C:\MinGW\lib,这是标准库的位置。我的就是("E:\Program Files (x86)\mingw\lib;")3、新建C_INCLUDEDE_PATH变量,值设为C:\MinGW\include,我的是"E:\Program Files (x86)\mingw\include;")。WIN8及高版本Windows:鼠标向右滑动至屏幕边缘,点开设置.再点开控制面板,直接输入"环境变量","编辑系统的环境变量",然后和上面相同.检验是否成功:命令行下输入"gcc -v".
![Sublime3 [Decode error - output not utf-8]](https://exp-picture.cdn.bcebos.com/49701aebf6a75f0fbe32f85d97324b18502c4cac.jpg)
![Sublime3 [Decode error - output not utf-8]](https://exp-picture.cdn.bcebos.com/57af657f860e7c75aeed7046650d3aceabd7bfac.jpg)
![Sublime3 [Decode error - output not utf-8]](https://exp-picture.cdn.bcebos.com/e09173e89a6186251f8a425b3b04541bd00faaac.jpg)
![Sublime3 [Decode error - output not utf-8]](https://exp-picture.cdn.bcebos.com/6bbfdd14f1c595ee2fd83b9427530688902c9aac.jpg)
![Sublime3 [Decode error - output not utf-8]](https://exp-picture.cdn.bcebos.com/76b6860e5f20437124c2ba93323acd8921c58fac.jpg)
3、按下Ctrl+Shift+P输入: ConvertToUTF8,安装好后,点击文件>set file encoding to>utf-8文件>reload encoding with>utf-8重启电脑.
![Sublime3 [Decode error - output not utf-8]](https://exp-picture.cdn.bcebos.com/9a8fd9f88a775ddd195569f9a427e7ef2906f9ac.jpg)
![Sublime3 [Decode error - output not utf-8]](https://exp-picture.cdn.bcebos.com/a9338a1fbee434da5447c690f271fe1d97d8e4ac.jpg)
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:50
阅读量:25
阅读量:68
阅读量:39
阅读量:51