title: python: trouble printing short utf-encoded strings
body: <p>(The following is using Python 2.6.1)</p>
  
  <p>I have 2 strings:</p>
  
  <pre><code>&gt;&gt;&gt; a = u'\u05e8\u05db\u05e1'
  &gt;&gt;&gt; b = u'\u05e8\u05db\u05e1 \u05d4\u05d9\u05d0 \u05de\u05d0\u05d9\u05e8\u05d4 \u05d1\u05e4\u05e0\u05e1'
  </code></pre>
  
  <p>I encode them:</p>
  
  <pre><code>&gt;&gt;&gt; ua = a.encode('utf-8')
  &gt;&gt;&gt; ub = b.encode('utf-8')
  &gt;&gt;&gt; ua
  '\xd7\xa8\xd7\x9b\xd7\xa1'
  &gt;&gt;&gt; ub
  '\xd7\xa8\xd7\x9b\xd7\xa1 \xd7\x94\xd7\x99\xd7\x90 \xd7\x9e\xd7\x90\xd7\x99\xd7\xa8\xd7\x94 \xd7\x91\xd7\xa4\xd7\xa0\xd7\xa1'
  </code></pre>
  
  <p>and try to print:</p>
  
  <pre><code>&gt;&gt;&gt; print ua
  ×¨×›×¡
  &gt;&gt;&gt; print ub
  רכס היא מאירה בפנס
  </code></pre>
  
  <p>Why does <code>ub</code> print in Hebrew characters while <code>ua</code> doesn't?  <code>ua</code> is just the first few characters of <code>ub</code>, so it seems as though string length is somehow the problem, which is weird.</p>
  
  <p>(For the record, this came up trying to parse a webpage with BeautifulSoup -- I couldn't tell why some paragraphs came out readably while others didn't.)</p>