Closed
Bug 979176
Opened 12 years ago
Closed 6 years ago
UnicodeEncodeError when sending watch email for page with non-ASCII unicode title
Categories
(developer.mozilla.org Graveyard :: Editing, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: groovecoder, Unassigned)
References
Details
[mdn] [celery@developer-celery1.webapp.scl3.mozilla.com] Error: Task tidings.events._fire_task (a6afaabb-3daa-471a-80d3-9a73244c0e20): UnicodeEncodeError('ascii', u'\xbfPor qu\xe9 Persona?', 0, 1, 'ordinal not in range(128)')
Task tidings.events._fire_task with id a6afaabb-3daa-471a-80d3-9a73244c0e20 raised exception:
"UnicodeEncodeError('ascii', u'\\xbfPor qu\\xe9 Persona?', 0, 1, 'ordinal not in range(128)')"
Task was called with args: (<wiki.events.EditDocumentEvent object at 0x5886110>,) kwargs: {'exclude': <User: Bryant>}.
The contents of the full traceback was:
Traceback (most recent call last):
File "/data/www/developer.mozilla.org/kuma/vendor/packages/celery/celery/execute/trace.py", line 181, in trace_task
R = retval = fun(*args, **kwargs)
File "/data/www/developer.mozilla.org/kuma/vendor/src/django-tidings/tidings/events.py", line 132, in _fire_task
for m in self._mails(self._users_watching(exclude=exclude)):
File "/data/www/developer.mozilla.org/kuma/apps/devmo/email_utils.py", line 154, in emails_with_users_and_watches
yield _make_mail(locale, u, w)
File "/data/www/developer.mozilla.org/kuma/apps/devmo/email_utils.py", line 70, in wrapper
return f(settings.WIKI_DEFAULT_LANGUAGE, *args, **kwargs)
File "/data/www/developer.mozilla.org/kuma/apps/devmo/email_utils.py", line 136, in _make_mail
subject.format(**context_vars),
UnicodeEncodeError: 'ascii' codec can't encode character u'\xbf' in position 0: ordinal not in range(128)
Comment 1•9 years ago
|
||
Likely candidate is this page, with the title '¿Por qué Mozilla Persona?'
https://developer.mozilla.org/es/docs/Mozilla/Persona/Why_Persona
Code is slightly different, at:
https://github.com/mozilla/kuma/blob/master/kuma/core/email_utils.py#L104-L109
It still needed testing to ensure that it works with non-ASCII unicode strings.
Blocks: MDNSpamMail
Summary: Task tidings.events._fire_task UnicodeEncodeError: 'ascii' codec can't encode character u'\xbf' in position 0: ordinal not in range(128) → UnicodeEncodeError when sending watch email for page with non-ASCII unicode title
Comment 2•6 years ago
|
||
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Updated•6 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•