title: Print Unicode Character in Console
body: <p>I have written the following code to represent a Unicode-based character at console output of windows but when I run the code, VS shows me an error with the following information:</p>
  
  <pre><code>Debug Assertation Failed
  
  Expression: buffer_size % 2 == 0
  </code></pre>
  
  <p>My Code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;stdio.h&gt;
  #include &lt;fcntl.h&gt;
  #include &lt;io.h&gt;
  
  auto main() -&gt; decltype(0) {
      bool status = _setmode(_fileno(stdout), _O_U16TEXT);
  
      if (status == true)
      {
          std::cout &lt;&lt; "Everything is working fine." &lt;&lt; std::endl;
      }
  
      wchar_t Message[] = L"\x263a";
      std::cout &lt;&lt; Message &lt;&lt; std::endl;
  
      return 0;
  }
  </code></pre>