title: How to print "box drawers" Unicode characters in C (Linux utf8 terminal)?
body: <p>I'm trying to display Unicode characters from (Box Drawing Range: 2500–257F). It's supposed to be standard utf8 (The Unicode Standard, Version 6.2). I'm simply unable to do it.</p>
  <p>I first tried to use the good old ASCII characters but the Linux terminal displays in utf8 and there is no conversion (symbol ?) displayed in place.</p>
  <p>Could anyone answer these questions:</p>
  <ul>
  <li>How to encode a unicode character in a C variable (<code>style wchar_t</code>)?</li>
  <li>How to use the escape sequence such as 0x or 0o (hex, oct) for Unicode?</li>
  </ul>
  <p>I know U+ but it seems it didn't work.</p>
  <pre><code>setlocale(LC_ALL,&quot;&quot;);
  short a = 0x2500, b = 0x2501;
  wchar_t ac = a;
  wchar_t bc = b;
  wprintf(L&quot;%c%c\n&quot;, ac, bc);
  exit(0);
  </code></pre>
  <p>I know that the results are related to the font used, but I use a utf8 font (<a href="http://www.unicode.org/charts/fonts.html" rel="nofollow noreferrer">http://www.unicode.org/charts/fonts.html</a>) and codes from 2500 to 257F must be displayed... Actually they aren't.</p>
  <p>Thanks for your help in advance...</p>
  <p>[EDIT LATELY]
  The issue is solved since... and I found how to use wprintf() with %lc instead of %c... and deeper.
  Now those bow drawers are part of my student &quot;tools&quot; library to make the console programming learning a little more coloured.</p>