﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27811	Avoid UnicodeEncodeError during generation of email with mail_admins logger	Antoine Humbert		"When using localization (USE_L10N = True), generated message for mails triggered by the mail_admins logger may contains some non-ascii characters depending on current locale.

This is the case for the display of server_time if current locale is french :
In django.views.debug.py, the TECHNICAL_500_TEXT_TEMPLATE contains
`Server time: {{server_time|date:""r""}}`
which results, for example, in the following unicode string, for a french locale :
lun, 6 Fév 2017 15:15:32 +0100

A solution would be to use a locale independant format (as suggested by the use_l10n=False defined in Context object created at ExceptionReporter.get_traceback_text), such as ""c"" format.


"	Bug	closed	Error reporting	1.10	Normal	wontfix			Unreviewed	0	0	0	0	0	0
