VS使用utf-8 no bom时编译报错的一个解决方案
时间:2021-09-02 16:38:08
收藏:0
阅读:8
Set the option in Visual Studio or programmatically
To set this compiler option in the Visual Studio development environment
-
Open the project Property Pages dialog box. For more information, see Set C++ compiler and build properties in Visual Studio.
-
Select the Configuration Properties > C/C++ > Command Line property page.
-
In Additional Options, add the
/utf-8option to specify your preferred encoding. -
Choose OK to save your changes.
原文:https://www.cnblogs.com/nuoforever/p/15217179.html
评论(0)