TCHARcbContent [512]; dyn. getFieldValue (0, cbConte [from Internet of Hong Kong (www.68idc.cn)] nt, 512); garbled characters AfxMessageBox (cbContent) are displayed in Chinese; encoding and conversion ratio (CP_UTF8, 0, (LPCSTR) cbContent,-1, NULL, 0); wchar _
TCHAR cbContent [512]; dyn. getFieldValue (0, cbConte [from the Internet (http://www.68idc.cn)] nt, 512); // Chinese will show garbled AfxMessageBox (cbContent ); // encode and convert int nBufferSize = MultiByteToWideChar (CP_UTF8, 0, (LPCSTR) cbContent,-1, NULL, 0); wchar _
TCHAR cbContent [512]; dyn. getFieldValue (0, cbConte [from the Internet (http://www.68idc.cn)] nt, 512); // Chinese will show garbled AfxMessageBox (cbContent ); // encode and convert int nBufferSize = MultiByteToWideChar (CP_UTF8, 0, (LPCSTR) cbContent,-1, NULL, 0); wchar_t * pBuffer = new wchar_t [nBufferSize + 1]; multiByteToWideChar (CP_UTF8, 0, (LPCSTR) cbContent,-1, pBuffer, nBufferSize * sizeof (wchar_t); // AfxMessageBox (pBuffer); delete [] pBuffer;