#4773: UnicodeEncodeError on dropdowns in admin
---------------------------------------+------------------------------------
Reporter: sime <[EMAIL PROTECTED]> | Owner: adrian
Status: closed | Component: Admin interface
Version: SVN | Resolution: worksforme
Keywords: | Stage: Unreviewed
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
---------------------------------------+------------------------------------
Comment (by mtredinnick):
Since you talk about force_unicode, I'm guessing you mean you are running
5620, not 5260.
This patch doesn't look like the right fix; it's exploiting a slightly
ugly feature of smart_str that should only be required for broken code,
from memory.
Can you please provide an example of how to repeat the problem so that we
can try to work out the right fix. At a minimum, what is str(s) returning
when the error occurs (it should be UTF-8, so I'm confused as to why any
encoding error would be occurring). And is the 'encoding' parameter
anything other than 'utf-8' when the problem occurs?
A traceback would be useful, too.
--
Ticket URL: <http://code.djangoproject.com/ticket/4773#comment:3>
Django Code <http://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
-~----------~----~----~----~------~----~------~--~---