Misfeature/bug in rss feeds
-
When I tried validating the feeds (RSS 0.92 and 2.0) at https://feedvalidator.org/check?url=https://nyfiken.org/wp-rss2.php it complained about char-set, saying that the server states US-ASCII and document states UTF-8, the latter being true.
Validator’s help sent me to https://www.w3.org/International/O-HTTP-charset and a quick solution.
On line 9/10 in wp-rss.php and wp-rss2.php I changed
header('Content-type: text/xml', true);
to
header('Content-type: text/xml; charset=' . $charset, true);
and now the feeds validate. Maybe this simple solution can be incorporated in the code?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Misfeature/bug in rss feeds’ is closed to new replies.