fork download
  1. #include <locale.h>
  2. #include <wchar.h>
  3.  
  4. int main(void)
  5. {
  6. setlocale(LC_ALL, "");
  7.  
  8. const wchar_t wArr[] = L"中国加油";
  9.  
  10. wprintf(L"%ls\n", wArr);
  11.  
  12. return 0;
  13. }
  14.  
  15.  
Success #stdin #stdout 0s 4256KB
stdin
Standard input is empty
stdout
中国加油