title: How to print utf-8 to console with Python 3.4 (Windows 8)?
body: <p>I'm trying to print utf-8 card symbols (♠,♥,♦︎︎,♣) from a python module to a windows console.  The console that I'm using is git bash and I'm using console2 as a front-end. I've tried/read a number of approaches below and nothing has worked so far.</p>
  <ul>
  <li><p>Made sure the console can handle utf-8 characters.
  These two tests make me believe that the console isn't the problem.</p>
  <p><a href="https://i.stack.imgur.com/cvJkA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cvJkA.png" alt="enter image description here" /></a></p>
  </li>
  <li><p>Attempt the same thing from the python module.<br />
  When I execute the .py, this is the result.</p>
  <pre><code> print(u'♠')
   UnicodeEncodeError: 'charmap' codec can't encode character '\u2660' in position 0: character maps to &lt;undefined&gt;
  </code></pre>
  </li>
  <li><p>Attempt to encode ♠.
  This gives me back the unicode set encoded in utf-8, but still no spade symbol.</p>
  <pre><code> text = '♠'
   print(text.encode('utf-8'))
   b'\xe2\x99\xa0'
  </code></pre>
  </li>
  </ul>
  <p>I feel like I'm missing a step or not understanding the whole encode/decode process.  I've read <a href="https://stackoverflow.com/questions/3597480/how-to-make-python-3-print-utf8">this</a>, <a href="https://stackoverflow.com/questions/492483/setting-the-correct-encoding-when-piping-stdout-in-python">this</a>, and <a href="https://stackoverflow.com/questions/5419/python-unicode-and-the-windows-console">this</a>.  The last of the pages suggests wrapping the sys.stdout into the code but <a href="https://stackoverflow.com/questions/3578685/how-to-display-utf-8-in-windows-console">this</a> article says using stdout is unnecessary and points to another page using the codecs module.</p>