Conversion of UTF-8 char * to CString

Greenhorn picture Greenhorn · Apr 15, 2011 · Viewed 13.4k times · Source

How do I convert a string in UTF-8 char* to CString?

Answer

ildjarn picture ildjarn · Apr 15, 2011

Call MultiByteToWideChar with a code page of CP_UTF8, then use CString as normal.