#8910: Unicodedecodeerror with inline models when using speical characers and
python 2.3.4
------------------------------------+---------------------------------------
Reporter: joshg | Owner: nobody
Status: new | Milestone:
Component: Uncategorized | Version: 1.0-beta-1
Resolution: | Keywords: python2.3 unicode
Stage: Unreviewed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------+---------------------------------------
Changes (by nfg):
* needs_better_patch: => 0
* has_patch: 0 => 1
* version: 1.0 => 1.0-beta-1
* needs_tests: => 0
* needs_docs: => 0
Comment:
This is yet another UnicodeDecode issue caused by lack of force_unicode
encapsulation.
As explained [http://www.pointy-stick.com/~malcolm/django-lazy-
promises.txt here]:
{{{
There is also a Python 2.3 issue here (a bug in 2.3): u'%s' % foo should
call
foo.__unicode__, if it exists. But in 2.3, it calls foo.__str__ always. So
we
need to write this as u'%s' % unicode(foo).
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/8910#comment:1>
Django <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
-~----------~----~----~----~------~----~------~--~---