summaryrefslogtreecommitdiff
path: root/django/utils/feedgenerator.py
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2011-02-12 19:12:14 +0000
committerJannis Leidel <jannis@leidel.info>2011-02-12 19:12:14 +0000
commit632d9f994f1203815bfc00a530c115be8dad5c1d (patch)
treec07288587e93d76cfd3254da51f92393b12a3926 /django/utils/feedgenerator.py
parentba1876cef22e46fe4e80ce32547ec9870991b63b (diff)
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
Diffstat (limited to 'django/utils/feedgenerator.py')
-rw-r--r--django/utils/feedgenerator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/feedgenerator.py b/django/utils/feedgenerator.py
index 15476f8b0f..a49e16be5c 100644
--- a/django/utils/feedgenerator.py
+++ b/django/utils/feedgenerator.py
@@ -291,7 +291,7 @@ class Rss201rev2Feed(RssFeed):
class Atom1Feed(SyndicationFeed):
# Spec: http://atompub.org/2005/07/11/draft-ietf-atompub-format-10.html
- mime_type = 'application/atom+xml'
+ mime_type = 'application/atom+xml; charset=utf8'
ns = u"http://www.w3.org/2005/Atom"
def write(self, outfile, encoding):