wchar_t *p = L"safedebug大大"; setlocale(LC_ALL,"chs"); wprintf(L"%s\n",p); setlocale(LC_ALL,"chs"); 加上这一句就可以了