title: Printing em-dash to console window using printf?
body: <p>A simple problem: I'm writing a chatroom program in C++ (but it's primarily C-style) for a class, and I'm trying to print, “#help — display a list of commands...” to the output window. While I could use two hyphens (--) to achieve <em>roughly</em> the same effect, I'd rather use an em-dash (—). <code>printf()</code>, however, doesn't seem to support printing em-dashes. Instead, the console just prints out the character, ù, in its place, despite the fact that entering em-dashes directly into the prompt works fine. </p>
  
  <p>How do I get this simple Unicode character to show up?</p>
  
  <p>Looking at Windows alt key codes, I find it interesting how alt+0151 is "—" and alt+151 is "ù". Is this related to my problem, or a simple coincidence? </p>