VC++ GB2312字符转化
GB2312格式字符的转化
UINT nCodePage = 936;
int len = WideCharToMultiByte(nCodePage, 0, srcBuff, srcBuffLen, NULL,0, NULL,NULL);
char *dstBuff = new char[len+1];
WideCharToMultiByte(nCodePage, 0, srcBuff, srcBuffLen, dstBuff,len, NULL,NULL);
dstBuff[len]=’\0′;
扫描下方二维码,关注业余草微信公众号,回复“FFmpeg”关键词,获取 FFmpeg 视频教程!