title: UTF-8 problem in python when reading chars
body: <p>I'm using Python 2.5. What is going on here? What have I misunderstood? How can I fix it?</p>
  
  <p><em>in.txt:</em></p>
  
  <pre><code>Stäckövérfløw
  </code></pre>
  
  <p><em>code.py</em></p>
  
  <pre><code>#!/usr/bin/env python
  # -*- coding: utf-8 -*-
  print """Content-Type: text/plain; charset="UTF-8"\n"""
  f = open('in.txt','r')
  for line in f:
      print line
      for i in line:
          print i,
  f.close()
  </code></pre>
  
  <p><em>output:</em></p>
  
  <pre><code>Stäckövérfløw
  
  S t � � c k � � v � � r f l � � w 
  </code></pre>