CStdioFile *fh;// Put up hourglass...this might take a whileCWaitCursor waitCursor;try{// Loading the file as binary since we're treating it as UTF-8fh = session.OpenURL(L"https://pwsafe.org/latest.xml",1, (INTERNET_FLAG_TRANSFER_BINARY | INTERNET_FLAG_RELOAD)); }catch(CInternetExce...
一般来说,这是因为你的txt文件编码格式导致的,如果mfc已经设置为多字节编码,那么txt一般根据你的操作系统设置为gb2312读出来的可能性比较大 我找了找,CStdioFile似乎不能显示指定编码
BOOL CFileTextLines::Save(constCString& sFilePath,boolbSaveAsUTF8, DWORD dwIgnoreWhitespaces/*=0*/, BOOL bIgnoreCase/*= FALSE*/,boolbBlame/*= false*/) {try{ CString destPath = sFilePath;// now make sure that the destination directory existsintind =0;while(destPath.Find('\\', ind...