title: How to print std::system_error what() for all languages
body: <p>When printing <code>what()</code> from a Windows console app, it works in English but running it in Korean for instance the output is all question marks like:</p>
  
  <pre><code>"?????? ???????????????."
  </code></pre>
  
  <p>The below code is what I have tried.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;windows.h&gt;
  
  int wmain(void)
  {
    try
    {
      throw std::system_error(ERROR_ACCESS_DENIED, std::system_category());
    }
  
    catch (const std::system_error &amp;e)
    {
      std::wcout &lt;&lt; e.what() &lt;&lt; std::endl;
    }
  
    return(0);
  }
  </code></pre>