              handler.addQuickElement(u"category", cat)
  
  class Atom1Feed(SyndicationFeed):
      # Spec: http://atompub.org/2005/07/11/draft-ietf-atompub-format-10.html
      mime_type = 'application/atom+xml'
      ns = u"http://www.w3.org/2005/Atom"
  
      def write(self, outfile, encoding):
          handler = SimplerXMLGenerator(outfile, encoding)
          handler.startDocument()
 
</s> remove from django.template import loader, Template, TemplateDoesNotExist, RequestContext
 </s> add from django.template import loader, TemplateDoesNotExist, RequestContext </s> remove import datetime
 </s> add 
    mime_type = 'application/atom+xml; charset=utf8'
              handler.addQuickElement(u"category", cat)
  
  class Atom1Feed(SyndicationFeed):
      # Spec: http://atompub.org/2005/07/11/draft-ietf-atompub-format-10.html
    mime_type = 'application/atom+xml; charset=utf8'
      ns = u"http://www.w3.org/2005/Atom"
  
      def write(self, outfile, encoding):
          handler = SimplerXMLGenerator(outfile, encoding)
          handler.startDocument()
keep keep keep keep replace keep keep keep keep keep
 Fixed #15237 -- Always set charset of Atom1 feeds to UTF-8. Thanks, Simon and jasonkotenko.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15505 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/utils/feedgenerator.py