#3924: Caught an exception while rendering: 'ascii' codec can't decode byte 0xc3
in position 8: ordinal not in range(128)
-------------------------------------+--------------------------------------
   Reporter:  [EMAIL PROTECTED]  |                Owner:  hugo           
     Status:  reopened               |            Component:  Template system
    Version:  SVN                    |           Resolution:                 
   Keywords:                         |                Stage:  Accepted       
  Has_patch:  0                      |           Needs_docs:  0              
Needs_tests:  0                      |   Needs_better_patch:  0              
-------------------------------------+--------------------------------------
Changes (by [EMAIL PROTECTED]):

  * component:  Internationalization => Template system
  * stage:  Unreviewed => Accepted

Comment:

 I can also confirm that [4919] is broken. The problem is:
 
 - when I use oldforms, the context is all in utf-8 encoded bytestrings
 - with [4919], {{{escape()}}} now returns a unicode string
 - template.render joins the various strings, and during this python tries
 to decode the bytestrings to unicode strings.
   This happens with the python defaultencoding, which is 'ASCII'. If any
 bytestring contains non-ASCII characters,
   you get the exception mentioned above.
 
 I'm not familiar with the admin interface, but I guess it still uses
 oldforms and also {{{escape()}}} somewhere.
 
 Reverting [4919] solved the issues for me.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3924#comment:9>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to