title: Iterating through a unicode string in Python
body: <p>I've got an issue with iterating through unicode strings, character by character, with python.</p>
  
  <pre><code>print "w: ",word
  for c in word:
      print "word: ",c
  </code></pre>
  
  <p>This is my output</p>
  
  <pre><code>w:  文本
  word:  ? 
  word:  ?
  word:  ?
  word:  ?
  word:  ?
  word:  ?
  </code></pre>
  
  <p>My desired output is:</p>
  
  <pre><code>文
  本
  </code></pre>
  
  <p>When I use len(word) I get 6. Apparently each character is 3 unicode chunks.</p>
  
  <p>So, my unicode string is successfully stored in the variable, but I cannot get the characters out. I have tried using encode('utf-8'), decode('utf-8) and codecs but still cannot obtain any good results. This seems like a simple problem but is frustratingly hard for me.</p>
  
  <p>Hope someone can point me to the right direction.</p>
  
  <p>Thanks!</p>