街角_祝福

导航

2023年6月1日 #

C++字符转码(GBK和UTF8)

摘要: ```cpp std::string GBKToUtf8(const char* pSrc, int nLen) { string strOut; if (pSrc && nLen > 0) { // ANSI -> UNICODE int wlen = MultiByteToWideChar(CP 阅读全文

posted @ 2023-06-01 18:59 街角_祝福 阅读(132) 评论(0) 推荐(0) 编辑