title: C++ unicode characters printing
body: <p>I need to print some unicode characters on the Linux terminal using <code>iostream</code>. Strange things happen though. When I write:</p>
  
  <pre><code>cout &lt;&lt; "\u2780";
  </code></pre>
  
  <p>I get: <code>➀</code>, which is almost exactly what I want. However if I write:</p>
  
  <pre><code>cout &lt;&lt; '\u2780';
  </code></pre>
  
  <p>I get: <code>14851712</code>.</p>
  
  <p>The problem is, I don't know the exact character to be printed at compile-time. Therefore I'd like to do something like:</p>
  
  <pre><code>int x;
  // some calculations...
  cout &lt;&lt; (char)('\u2780' + x);
  </code></pre>
  
  <p>Which prints: <code>�</code>. Using <code>wcout</code> or <code>wchar_t</code> instead don't work either. How do I get correct printing?</p>
  
  <p>From what I found around on the Internet it seems important that I use g++ 4.7.2 compiler straight from Debian Wheezy repository.</p>