Hi, trying to get characters, such as ä, ê, and so on, out of a file, so, I try and convert an std::string, gotten from the file, to a std::wstring, using, in the mean time, MultiByteToWideChar (win api).
This gives, unfortunately, using GetLastError, following error code:
Note For UTF-8 or code page 54936 (GB18030, starting with Windows Vista), dwFlags must be set to either 0 or MB_ERR_INVALID_CHARS. Otherwise, the function fails with ERROR_INVALID_FLAGS.