#8391: Results of slugify in the admin interface differ from the one in shell.
------------------------------------+---------------------------------------
Reporter: bjornkri | Owner: nobody
Status: new | Milestone:
Component: Uncategorized | Version: SVN
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------+---------------------------------------
Comment (by Daniel Pope <[EMAIL PROTECTED]>):
For the first example, the expected results aren't well defined: Unicode
characters can't be reliably represented in a bytestring. I think Django
does {{{smart_unicode}}} on the input so it works for UTF-8 byte strings
but that's just Django being flexible.
For the second example, I suspect where you've typed u'bøøøø', Python has
interpreted your unicode string literal as the wrong character set,
equivalent to
{{{u'bøøøø'.encode('utf8').decode('iso-8859-1')}}}
Putting the same thing in a script with a PEP-263 header gives 'b' for the
second example.
--
Ticket URL: <http://code.djangoproject.com/ticket/8391#comment:2>
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
-~----------~----~----~----~------~----~------~--~---