title: How to print Unicode codepoints as characters in C?
body: <p>I have an array of <code>uint32_t</code> elements that each store a codepoint for a non-latin Unicode character. How do I print them on the console or store them in a file as UTF-8 encoded characters? I understand that they may fail to render properly on a console, but they should display fine if I open them in a compatible editor.  </p>
  
  <p>I have tried using <code>wprintf(L"%lc", UINT32_T_VARIABLE)</code>, and <code>fwprintf(FILE_STREAM, L"%lc", UINT32_T_VARIABLE)</code> but to no avail.</p>