unicode-error in header_text
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Singing & Dancing |
New
|
Undecided
|
Unassigned |
Bug Description
Usage of umlauts (e.g. ü) in header_text leads to an unicodeDecodeError on preview and sending:
(...)
Module collective.
Module collective.
Module collective.
Module collective.
Module collective.
Module collective.
Module string, line 205, in safe_substitute
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 9: ordinal not in range(128)
Strangely, using an umlaut in footer_text does not produce this error.
Regards,
Philip
I'm also affected by this bug. I'm using the newest collective.dancing version 0.9.2. Fixed this locally by adding .decode("utf-8") to the code like this:
vars['header_text'] = fix_urls( self.header_ text or u"").decode( "utf-8" )
Regards,
Antti