做法
#include <locale.h>
_wsetlocale(LC_ALL,L"chs");
wchar_t text = L"你好";
之后使用即使本保存为uft-8格式
删除文件头的bom信息
编译通过
做法
#include <locale.h>
_wsetlocale(LC_ALL,L"chs");
wchar_t text = L"你好";
之后使用即使本保存为uft-8格式
删除文件头的bom信息
编译通过
13万+
3740

被折叠的 条评论
为什么被折叠?