#28251: Paginator causes a UnicodeDecodeError on empty pages when language is 
DE or
FR (and possibly others)
-------------------------------------+-------------------------------------
               Reporter:  Paolo      |          Owner:  nobody
  Dente                              |
                   Type:  Bug        |         Status:  new
              Component:             |        Version:  1.11
  Internationalization               |
               Severity:  Normal     |       Keywords:  Paginator i18n
           Triage Stage:             |      Has patch:  1
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  1
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 The new translations files from
 
https://github.com/django/django/commit/afe4edb4eaaad89acefa6b6d0697d6fa67387eea
 cause an exception with empty pages. For instance, in French you'd get
 this:
 **UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 30:
 ordinal not in range(128)**

 This is caused by
 https://github.com/django/django/blob/master/django/views/generic/list.py#L74
 - changing
 **str(e)**
 with
 **unicode(e)**
 fixes the problem for me.

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

Reply via email to