#5956: unicode character in response headars
----------------------------------------------------------+-----------------
Reporter:  Can Burak Cilingir <[EMAIL PROTECTED]>  |       Owner:  nobody       
  Status:  new                                            |   Component:  
Uncategorized
 Version:  SVN                                            |    Keywords:        
       
   Stage:  Unreviewed                                     |   Has_patch:  0     
       
----------------------------------------------------------+-----------------
 when you put a non-7-bit character to a header, django dies in a bad way.

 when you have DEBUG=True, you even don't see a django exception.
 {{{
 Traceback (most recent call last):

   File "/usr/lib/python2.5/site-packages/django/core/servers/basehttp.py",
 line 278, in run
     self.result = application(self.environ, self.start_response)

   File "/usr/lib/python2.5/site-packages/django/core/servers/basehttp.py",
 line 620, in __call__
     return self.application(environ, start_response)

   File "/usr/lib/python2.5/site-packages/django/core/handlers/wsgi.py",
 line 218, in __call__
     response_headers = [(str(k), str(v)) for k, v in response.items()]

 UnicodeEncodeError: 'ascii' codec can't encode character u'\u011f' in
 position 9: ordinal not in range(128)
 }}}

 we need to display a better error desription or just ignore unicode
 objects for the headers

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5956>
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