osmlab / checkin-checker

A simple application that notifies you when a Foursquare checkin venue doesn't exist in OSM.
https://checkin-checker.dev.openstreetmap.us/
MIT License
19 stars 3 forks source link

Unicode errors while emailing #17

Closed iandees closed 7 years ago

iandees commented 7 years ago

Make sure we're doing Unicodez right:

Traceback (most recent call last): 
  File "/app/.heroku/python/lib/python2.7/site-packages/rq/worker.py", line 568, in perform_job 
    rv = job.perform() 
  File "/app/.heroku/python/lib/python2.7/site-packages/rq/job.py", line 495, in perform 
    self._result = self.func(*self.args, **self.kwargs) 
  File "/app/checkinchecker/checker.py", line 184, in foursquare_checkin_has_matches 
    questions.append(" - Is the venue still on '{}'?".format(tags['addr:street'])) 
UnicodeEncodeError: 'ascii' codec can't encode character u'\xdf' in position 12: ordinal not in range(128)