#28067: Encoding error when __str__ returns non-ASCII
--------------------------------------+------------------------------------
     Reporter:  Christophe Pettus     |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Documentation         |                  Version:  master
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by Christophe Pettus):

 It seems the most applicable advice is, "If you are using
 {{{@python_2_unicode_compatible}}} to support both Python 2 and Python 3,
 cast objects using {{{six.text_type}}} rather than {{{str}}} or
 {{{unicode}}}." Does that cover it?

--
Ticket URL: <https://code.djangoproject.com/ticket/28067#comment:6>
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/061.b007bd5fbe1d6a69399c6effd31e3457%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to