vs2017编译utf-8无BOM源码文件
一、MSVC中字符集概念
Source Character Sets: 源码字符集,源代码的字符编码格式,由源码编辑器决定。
Executable Character Sets: 执行字符集,执行程序里面字符串的编码格式,由编译器决定。
三、MSVC支持utf-8 without BOM
Specifies both the source character set and the execution character set as UTF-8.将源码转为utf-8无BOM格式文件后,再按照链接说明设置vs的编译选项。