#15237: Django generated Atom/RSS feeds don't specify charset=utf8 in their
Content-Type
-----------------------------+----------------------------------------------
   Reporter:  simon          |                     Owner:  nobody    
     Status:  new            |                 Milestone:            
  Component:  RSS framework  |                   Version:  1.2       
   Keywords:                 |              Triage Stage:  Unreviewed
  Has patch:  0              |       Needs documentation:  0         
Needs tests:  0              |   Patch needs improvement:  0         
-----------------------------+----------------------------------------------
 Atom feeds containing UTF8 characters should be served with a Content-Type
 of "application/atom+xml; charset=utf8". At the moment Django's default
 behaviour is to serve them without the charset bit, and it's not
 particularly easy to over-ride this behaviour:

 
http://code.djangoproject.com/browser/django/trunk/django/utils/feedgenerator.py#L290

 The workaround I'm using at the moment is to wrap the feed in a view
 function which over-rides the content-type on the generated response
 object, but it's a bit of a hack:

 {{{
 def feed(request):
     response = MyFeed()(request)
     response['Content-Type'] = 'application/atom+xml; charset=utf-8'
     return response
 }}}

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

Reply via email to