Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: encoding error with email subjects #5767

Open
m4ra opened this issue Nov 27, 2024 · 1 comment · May be fixed by #5775
Open

fix: encoding error with email subjects #5767

m4ra opened this issue Nov 27, 2024 · 1 comment · May be fixed by #5775
Assignees
Labels
Dev: Backend issue related to backend Type: Bug incorrect or uexpected behaviour

Comments

@m4ra
Copy link
Contributor

m4ra commented Nov 27, 2024

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 m4ra added this to the pre-release testing milestone Nov 27, 2024
@m4ra m4ra added Dev: Backend issue related to backend Type: Bug incorrect or uexpected behaviour labels Nov 27, 2024
@m4ra m4ra self-assigned this Nov 27, 2024
@m4ra m4ra linked a pull request Nov 28, 2024 that will close this issue
5 tasks
@m4ra m4ra changed the title fix: encoding error with newsletters emails fix: encoding error with email subjects Dec 3, 2024
@m4ra m4ra removed this from the pre-release testing milestone Dec 3, 2024
@m4ra
Copy link
Contributor Author

m4ra commented Dec 3, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dev: Backend issue related to backend Type: Bug incorrect or uexpected behaviour
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant