#include <stdio.h> int main() { printf("中文"); return 0; }
在 win10 上使用 mingw64 编译 g++ test.cpp -fexec-charset=GBK -o test active code page 为 936
运行后输出 U+FFFD