UTF-8没有跨平台问题,存成UTF-8 BOM 或者visual studio 里另存为-> save with encoding ->Unicode(UTF-8 with signature) 就可以了。见https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4819?view=msvc-160
VisualStudio 编译警告 C4819 warning1.现象 编译C++代码,出现如下编译警告: warning C4819: The file contains a character that cannot be repr...