#30324: I found an error related to Unicode.
-------------------------------------+-------------------------------------
Reporter: chihun- | Owner: (none)
jang |
Type: Bug | Status: new
Component: Error | Version: 2.2
reporting | Keywords: runserver,
Severity: Normal | UnicodeDecodeError,
Triage Stage: | cp949,template,technical_500
Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------+-------------------------------------
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?
--
Ticket URL: <https://code.djangoproject.com/ticket/30324>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/054.fe852e7dc143501e4e22eada04fd9445%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.