#28271: AJAX traceback in DEBUG mode doesn't support unicode
----------------------------------------------+------------------------
               Reporter:  Sergey Tereschenko  |          Owner:  (none)
                   Type:  Bug                 |         Status:  new
              Component:  Error reporting     |        Version:  master
               Severity:  Normal              |       Keywords:
           Triage Stage:  Unreviewed          |      Has patch:  1
    Needs documentation:  0                   |    Needs tests:  0
Patch needs improvement:  0                   |  Easy pickings:  1
                  UI/UX:  0                   |
----------------------------------------------+------------------------
 In `django/views/debug.py`
 `technical_500_response` uses content-type `text-plain` for ajax requests
 and `text-html` for normal requests.

 TECHNICAL_500_TEMPLATE includes meta tag
 {{{
 <meta http-equiv="content-type" content="text/html; charset=utf-8">
 }}}
 And so it supports unicode.

 Traceback for AJAX request must use
 {{{
 HttpResponse(text, status=status_code, content_type='text/plain;
 charset=utf-8')
 }}}
 to support unicode. But now it's just 'text-plain'

--
Ticket URL: <https://code.djangoproject.com/ticket/28271>
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/051.c167acccb4f3c0db96457a295de89d77%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to