title: BeautifulSoup findall with class attribute- unicode encode error
body: <p>I am using BeautifulSoup to extract news stories(just the titles) from <a href="http://news.ycombinator.com" rel="noreferrer">Hacker News</a> and have this much up till now- </p>
  
  <pre><code>import urllib2
  from BeautifulSoup import BeautifulSoup
  
  HN_url = "http://news.ycombinator.com"
  
  def get_page():
      page_html = urllib2.urlopen(HN_url) 
      return page_html
  
  def get_stories(content):
      soup = BeautifulSoup(content)
      titles_html =[]
  
      for td in soup.findAll("td", { "class":"title" }):
          titles_html += td.findAll("a")
  
      return titles_html
  
  print get_stories(get_page()
  </code></pre>
  
  <p>)</p>
  
  <p>When I run the code, however, it gives an error-</p>
  
  <pre><code>Traceback (most recent call last):
    File "terminalHN.py", line 19, in &lt;module&gt;
      print get_stories(get_page())
  UnicodeEncodeError: 'ascii' codec can't encode character u'\xe2' in position 131: ordinal not in range(128)
  </code></pre>
  
  <p>How do I get this to work?</p>