title: UnicodeEncodeError: 'ascii' codec can't encode character u'\xa3' in position 619: ordinal not in range(128)
body: <p>I've encountered the notorious <code>UnicodeEncodeError</code>. I've researched a lot about this error before posting this here, there are apparently multiple versions of this error.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>import nltk,re,pprint
  import geograpy
  import codecs
  from nameparser.parser import HumanName
  
  text_file = codecs.open('H:/Study and Work/Marciano Asstship/Work/Incident_cards_data/2.Text Extracted/Boxes 1 - 21/Boxes 8 thru 21-TULE LAKE/Box9-TULE LAKE/box9.txt',encoding = 'utf-8')
  text_data = text_file.read()
  
  places = geograpy.get_place_context(text_data)
  print places
  </code></pre>
  
  <p>and  here's the error:</p>
  
  <pre><code>log.debug('%s on %s' % (e, url))
  UnicodeEncodeError: 'ascii' codec can't encode character u'\xa3' in position 619: ordinal not in range(128)
  </code></pre>