title: Ignore Unicode Error
body: <p>When I run a loop over a bunch of URLs to find all links (in certain Divs) on those pages I get back this error:</p>
  
  <pre><code>Traceback (most recent call last):
  File "file_location", line 38, in &lt;module&gt;
  out.writerow(tag['href'])
  UnicodeEncodeError: 'ascii' codec can't encode character u'\u2026' in position 0: ordinal not in range(128)
  </code></pre>
  
  <p>The code I have written related to this error is:</p>
  
  <pre><code>out  = csv.writer(open("file_location", "ab"), delimiter=";")
  for tag in soup_3.findAll('a', href=True):   
      out.writerow(tag['href'])
  </code></pre>
  
  <p><strong>Is there a way to solve this, possibly using an if statement to ignore any URLs that have Unicode errors?</strong></p>
  
  <p>Thanks in advance for your help.</p>