From 6b726229397c035b2f7d84cbb4858a939f93d356 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Mon, 23 May 2022 00:15:40 +1200 Subject: [PATCH] Set content-type charset=utf-8 for feeds. Hope this helps. --- src/site/api/feed.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/site/api/feed.js b/src/site/api/feed.js index 271208b..02e3a7a 100644 --- a/src/site/api/feed.js +++ b/src/site/api/feed.js @@ -13,12 +13,12 @@ p(style="white-space: pre-line") #{message}#[a(href=link)= link] function respondWithFeed(feed, kind, maxAge, available) { if (kind === "rss") { var data = { - contentType: "application/rss+xml", // see https://stackoverflow.com/questions/595616/what-is-the-correct-mime-type-to-use-for-an-rss-feed, + contentType: "application/rss+xml; charset=utf-8", // see https://stackoverflow.com/questions/595616/what-is-the-correct-mime-type-to-use-for-an-rss-feed, content: feed.rss2() } } else if (kind === "atom") { var data = { - contentType: "application/atom+xml", // see https://en.wikipedia.org/wiki/Atom_(standard)#Including_in_HTML + contentType: "application/atom+xml; charset=utf-8", // see https://en.wikipedia.org/wiki/Atom_(standard)#Including_in_HTML content: feed.atom1() } }