unicode转utf8(当含有韩文字符wchar转char时会有乱码)
int len = WideCharToMultiByte(CP_UTF8,0,filePath,-1,NULL,0,NULL,NULL);
char *fileName = new char[len +1];
::memset(fileName, 0, len);
WideCharToMultiByte(CP_UTF8,0,filePath,-1,fileName,len,NULL,NULL );
需要将unicode的wchar 转成utf8的char即可解决问题