Open kanggwangmo opened 1 year ago
char* on windows is usually interpreted as the active system codepage. Try something like this to use utf-8 in a windows app with the various platform APIs.
I have set visual studio 2015 my page settings (advanced save options) to Unicode (UTF-8 with signature, codepage 65001).
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage entry in the registry was set to 949, but changed to 65001.
The region is Korea.
Development language: MFC
I'm having a problem with the code below. How can I resolve this?
CString strResult = jsonDocs[U("name")].as_string().c_str(); // strResult = �߿乮��