报错
- echo是一个mfc的项目
- 里面引用了dll里一些个头文件
- 导致引入了一堆头文件路径
- 一堆的代码
- 然后要求utf8
- 构建,否则报错:
3>d:\xtrans\thunderbolt\ayame\zhb-bifrost\player-only\3rd\fmt-11.0.2\include\fmt\base.h(458): error C2338: Unicode support requires compiling with /utf-8
我当前的字符设置
分析
这个错误是因为代码中包含了 Unicode 字符(比如注释中的 ✅ 和 ⚠️ 符号),而 Visual Studio 默认没有启用 UTF-8 编译。
有几种解决方案: