fork download
  1. #include <windows.h>
  2. #include <stdio.h>
  3. #include <iostream>
  4.  
  5. //wchar_t s[] = L"èéøÞǽлљΣæča"
  6.  
  7. int main() {
  8. SetConsoleOutputCP(CP_UTF8);
  9. wchar_t s[] = L"èéøÞǽлљΣæča";
  10.  
  11. std::wcout.sync_with_stdio(false);
  12. std::wcout << s;
  13. /*
  14. int bufferSize = WideCharToMultiByte(CP_UTF8, 0, s, -1, NULL, 0, NULL, NULL);
  15. char* m = new char[bufferSize];
  16. WideCharToMultiByte(CP_UTF8, 0, s, -1, m, bufferSize, NULL, NULL);
  17. wprintf(L"%s", s);
  18. */
  19. return 0;
  20. }
  21.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty