diff --git a/django/utils/feedgenerator.py b/django/utils/feedgenerator.py
index df3cf41..592d787 100644
a
|
b
|
class Enclosure(object):
|
200 | 200 | self.url = iri_to_uri(url) |
201 | 201 | |
202 | 202 | class RssFeed(SyndicationFeed): |
203 | | mime_type = 'application/rss+xml' |
| 203 | mime_type = 'application/rss+xml; charset=utf-8' |
204 | 204 | def write(self, outfile, encoding): |
205 | 205 | handler = SimplerXMLGenerator(outfile, encoding) |
206 | 206 | handler.startDocument() |
diff --git a/tests/regressiontests/utils/feedgenerator.py b/tests/regressiontests/utils/feedgenerator.py
index 6b85abf..3990896 100644
a
|
b
|
class FeedgeneratorTest(unittest.TestCase):
|
87 | 87 | atom_feed.mime_type, "application/atom+xml; charset=utf-8" |
88 | 88 | ) |
89 | 89 | |
| 90 | def test_rss_mime_type(self): |
| 91 | """ |
| 92 | Test to make sure RSS MIME type has UTF8 Charset parameter set |
| 93 | """ |
| 94 | rss_feed = feedgenerator.Rss201rev2Feed("title", "link", "description") |
| 95 | self.assertEqual( |
| 96 | rss_feed.mime_type, "application/rss+xml; charset=utf-8" |
| 97 | ) |
| 98 | |
90 | 99 | # Two regression tests for #14202 |
91 | 100 | |
92 | 101 | def test_feed_without_feed_url_gets_rendered_without_atom_link(self): |