title: how to send international characters to windows console?
body: <p>code:</p>
  
  <pre><code>#include &lt;windows.h&gt;
  
  int main() {
    SetConsoleOutputCP(CP_UTF8);
    system("echo Ιλιάδα");
  }
  </code></pre>
  
  <p>prints on console: <code>Î™Î»ÎąÎ¬Î´Î±</code>
  Source is encoded in UTF-8 with BOM.</p>
  
  <p>But if I try: <code>system(L"echo Ιλιάδα");</code>, I get error: <code>error: cannot convert 'const wchar_t*' to 'const char*' for argument '1' to 'int system(const char*)'</code>. And of course I didn't expect anything else here. Is there any other function that will accept these characters ?</p>