Closed danipapi19 closed 4 years ago
Add:
Modify in writeTempFile : std::ofstream utf8file(szTempFileName); std::wbuffer_convert<std::codecvt_utf8> converter(utf8file.rdbuf()); std::wostream out(&converter); out << fileContent; utf8file.close();
//wofstream tempfile; //tempfile.open(szTempFileName); //tempfile << fileContent; //tempfile.close(); *result = ws2s(szTempFileName);
Add:
include
Modify in writeTempFile : std::ofstream utf8file(szTempFileName); std::wbuffer_convert<std::codecvt_utf8> converter(utf8file.rdbuf());
std::wostream out(&converter);
out << fileContent;
utf8file.close();