title: stuck with encodings in python with BeautifulSoup
body: <p>The page is encoded in UTF-8 and with python's HTMLParser it works well, no <code>UnicodeDecodeError</code>, but I do get an error when I try to parse it with BeautifulSoup.
  I've tried <code>_*_</code> coding: <code>utf-8 _*_</code>, <code>.encode('utf-8')</code> everywhere and am still getting the error</p>
  
  <pre><code>import urllib
  from BeautifulSoup import BeautifulSoup
  args=urllib.urlencode({'keywords':'magic'})
  doc=urllib.urlopen('http://www.example.com/submit', args)
  soup=BeautifulSoup(doc)
  stuff = soup.findAll('section',id='banner')
  print stuff
  
  Traceback (most recent call last):
        File "test.py", line 7, in &lt;module&gt;
          print stuff
      UnicodeEncodeError: 'ascii' codec can't encode character u'\xed' in position 112: ordinal not in range(128)
  </code></pre>