title: Working with UTF-8 encoding in Python source
body: <p>Consider:</p>
  
  <pre><code>$ cat bla.py 
  u = unicode('d…')
  s = u.encode('utf-8')
  print s
  $ python bla.py 
    File "bla.py", line 1
  SyntaxError: Non-ASCII character '\xe2' in file bla.py on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
  </code></pre>
  
  <p>How can I declare UTF-8 strings in source code?</p>