﻿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
30324	UnicodeDecodeError when loading debug templates.	chihun-jang	Nick Pope	"While studying Django, I had an error where the technical_500.html page was not properly printed.


[[Image(https://2.bp.blogspot.com/-JFSh6RRcMbs/XKUCH5KmcMI/AAAAAAAA8TU/ZC-b4fJJNL0auiAtl2fDSMfBf3nAudhtACEwYBhgL/s1600/unicode%2Berror.png)]]
In the log window, UnicodeDecodeError was continuously printed, and in the template, the sentence 'A server error occured. Please contact the administrator' was printed



So when I checked the technical_500.html file of Django 2.2version, I found that the dotdotdot wrapped by the <span>tag on the 239th line was changed to ellipsis.

[[Image(https://4.bp.blogspot.com/-l8Jae3-q2aY/XKUCGVUX2VI/AAAAAAAA8TU/Gv_eoeessEIoIVZ_xJMsEaO9NqpIQmLhQCEwYBhgL/s1600/diffrent%2Btext.png)]]

Apparently, the version of Django 2.1.8 was a dotdotdot.

So I took steps to change the 239th line's ellipsis to dotdotdot.

Or, when reading the technical_500.html file from inside the debug.py file, the encoding format was set to utf-8.

[[Image(https://1.bp.blogspot.com/-7X1UZVMZy58/XKUCGdbtVAI/AAAAAAAA8TM/1SdjeDtkuXYt8v0Q__zYDZwvMTesvlciQCEwYBhgL/s1600/add%2Bencoding%2Boption.png)]]


This enabled me to resolve the error.

Did you intentionally modify the technical_html file?


"	Bug	closed	Error reporting	2.2	Release blocker	fixed	runserver, UnicodeDecodeError, cp949,template,technical_500		Ready for checkin	1	0	0	0	0	0
