C/C++UT8与GBK编码互转 UTF8-转GBK #include #include "windows.h" std::string UtfToGbk(const char* utf8) { int len = MultiByteToWideChar(CP_UTF8, 0, utf8, -1, NULL, 0); wchar_t* wstr = new wchar_t[……继续阅读 » Moxun 6年前 (2018-06-07) 4172浏览 0评论 2个赞