title: Python unicode in Mac os X terminal
body: <p>Can someone explain to me this odd thing:</p>
  
  <p>When in python shell I type the following Cyrillic string:</p>
  
  <pre><code>&gt;&gt;&gt; print 'абвгд'
  абвгд
  </code></pre>
  
  <p>but when I type:</p>
  
  <pre><code>&gt;&gt;&gt; print u'абвгд'
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-9: ordinal not in range(128)
  </code></pre>
  
  <p>Since the first tring came out correctly, I reckon my OS X terminal can represent unicode, but it turns out it can't in the second case. Why ?</p>