#include <iostream>
int main()
{
wcout.imbue(locale("chs"));
wcout << ((CString)_T("中文")).GetBuffer() << endl;
wcout << ((CString)_T("中文")).GetString() << endl;
wcout << ((CString)_T("English")).GetBuffer() << endl;
wcout << ((CString)_T("English")).GetString() << endl;
return 0;
}
原文:https://www.cnblogs.com/dailycode/p/12465452.html