#18219: Django UnicodeEncodeError in errorlist
----------------------------------+--------------------------------------
Reporter: Andrei <fokau@…> | Owner: nobody
Type: Uncategorized | Status: closed
Component: Forms | Version: 1.3
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------------------------
Changes (by lukeplant):
* status: new => closed
* resolution: => invalid
Comment:
It sounds like you have some non-ASCII bytestrings, not a unicode object.
Note the difference between these:
{{{
>>> "é"
}}}
which is a **not** a unicode object, but rather a bytestring equal to
"\xc3\xa9" and
{{{
>>> u"é"
}}}
which **is** unicode.
To get to that line in force_unicode, you must be passing 'str' not a
'unicode'. Genuine unicode objects will not cause the problem you are
describing.
--
Ticket URL: <https://code.djangoproject.com/ticket/18219#comment:2>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.