title: How to output emoji to console in Node.js (on Windows)?
body: <p>On Windows, there's some basic emoji support in the console, so that I can get a monochrome glyph if I type, e.g.  <code>☕</code> or <code></code>.  I can output a string from PowerShell or a C# console application or Python and they all show those characters fine enough.</p>
  
  <p>However, from Node.js, I can only get a couple of emoji to display (e.g. <code>☕</code>), but not other (instead of <code></code> I see <code>�</code>).  However, if I <code>throw</code> a string with those characters, they display correctly.</p>
  
  <pre><code>console.log('  ☕ ');
  throw '  ☕ ';
  </code></pre>
  
  <p>If I run the above script, the output is</p>
  
  <blockquote>
  <pre><code> � ☕
  
  C:\Code\emojitest\emojitest.js:2
  throw '  ☕ '; 
  ^
    ☕
  </code></pre>
  </blockquote>
  
  <p>Is there anyway that I can output those emojis correctly without throwing an error?  Or is that exception happening outside of what's available to me through the standard Node.js APIs?</p>