• Nicolas Joyard's avatar
    Fix encoding bug in social links · c1aeb29d
    Nicolas Joyard authored
    Error was:
      UnicodeEncodeError at /legislature/representative/michele-alliot-marie/
      'ascii' codec can't encode character u'\xe8' in position 35: ordinal not in range(128)
      in  /home/niko/dev/memopol/political_memory/memopol/templatetags/memopol_tags.py in facebook_link
                        label=re.sub(r'.*/([^/]+)', '\\1', re.sub(r'/$', '', url.strip()))))
    c1aeb29d