emencia / emencia-django-newsletter

An app for sending newsletter by email to a contact list.
189 stars 72 forks source link

Smart_str for links header in csv report #12

Closed jfache closed 14 years ago

jfache commented 14 years ago

In newsletter/views/statistics.py, line 70, use the 'smart_str' function around the link.title in order to avoid UnicodeEncodingErrors.

def header_line(links):
    link_cols = [smart_str(link.title) for link in links]

Thanks !

Fantomas42 commented 14 years ago

Hi shao197 ! thank you for the bug report ! Fixed in 6b148f18512e8a76ed748150f8bac9f1f8d75e0f