- 博客(1)
- 收藏
- 关注
原创 C++字符串中UTF和GBK编码的相互转换
C++字符串中UTF和GBK编码的相互转换 CString UTFtoGBK(unsigned char* chSMS) { int len=MultiByteToWideChar(CP_UTF8,0,(LPCCH)chSMS,-1,NULL,0);wchar_t* wstr=new wchar_t[len+1];memset(wstr,0,len+1); MultiByteToWideChar(CP_UTF8,0,(LPCCH)chSMS,-1,wstr,len); len=WideCharToMulti
2021-01-10 16:00:28 544
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人