title: How convert wchar_t to unicode number?
body: <p>How convert wchar value into number in unicode table?</p>
  
  <p>I have a variable:</p>
  
  <pre><code>wchar_t znak;
  znak=getwchar();
  </code></pre>
  
  <p>I type 'ą' how convert znak to #261
  I need number in unicode table. </p>
  
  <p>ą U+0105 LATIN SMALL LETTER A WITH OGONEK</p>
  
  <p>UTF-16: 0x0105</p>
  
  <p>XML: &amp; # 261;</p>