jankeirse / tvhgooglemapi

Simplemapi provider for Google Mail (both gmail and google apps)
http://jankeirse.github.io/tvhgooglemapi/
Apache License 2.0
20 stars 10 forks source link

Fix for utf-8 support #63

Closed danipapi19 closed 4 years ago

danipapi19 commented 6 years ago

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();

//wofstream tempfile;

//tempfile.open(szTempFileName);
//tempfile << fileContent;
//tempfile.close();
*result = ws2s(szTempFileName);