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-8
option to specify your preferred encoding.
Choose OK to save your changes.
原文:https://www.cnblogs.com/nuoforever/p/15217179.html