a4-meinberlin icon indicating copy to clipboard operation
a4-meinberlin copied to clipboard

fix: encoding error with email subjects

Open m4ra opened this issue 1 year ago • 1 comments

URL: user: **expected behaviour:encoding should work, escape email subjects of apostrophes *behaviour: apostrophes in email subjects are not encoded. UnicodeEncodeError: 'utf-8' codec can't encode characters in position 191-192: surrogates not allowed (16 additional frame(s) were not displayed) ... File "meinberlin/apps/newsletters/emails.py", line 25, in dispatch return super().dispatch(object, *args, *kwargs) important screensize: device & browser: Comment/Question:

Screenshot?

m4ra avatar Nov 27 '24 10:11 m4ra

Removing it from the release milestone, as the django update to 4.2.12 will fix it. Keeping the issue as we need to look more into a4 and aplus as well for email subjects that need normalization.

m4ra avatar Dec 03 '24 09:12 m4ra

Issue didn't appear again after the django upgrade, so closing this PR.

m4ra avatar Jun 02 '25 12:06 m4ra