I\'m currently working on a MFC program that specifically has to work with UTF-8. At some point, I have to write UTF-8 data into a file; to do that, I\'m using CFiles and CS
You'll have to convert sWorkingLine to UTF-8 and then write it in the file.
sWorkingLine
WideCharToMultiByte can convert unicode strings to UTF-8 if you select the CP_UTF8 codepage. MultiByteToWideChar can convert ASCII chars to unicode.
CP_UTF8