Windows下 GBK与UTF8之间的互相转换(C++)
1.GBK转UTF8std::string GBKToUTF8(const char* str_GBK){ int len = MultiByteToWideChar(CP_ACP, 0, str_GBK, -1, NULL, 0); wchar_t* wstr = new wchar_t[len + 1]; memset(wstr, 0, len + 1); MultiByteToW...