Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Fix a macosxhints/AmphetaDesk RSS glitch' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Fix a macosxhints/AmphetaDesk RSS glitch
Authored by: Lankhmart on Jun 29, '04 02:30:04PM

First, the feed claims to use UTF-8 encoding, but the text actually seems to be in latin-1 (or iso-8859-1) format. So match the declaration at the top of the XML to the real text encoding (or vice versa).

Second, the server is giving the feed a MIME type of "text/plain" when it really ought to be "application/rss+xml".

(As a point of reference: the feedvalidator made these issues easy to spot.)



[ Reply to This | # ]
Fix a macosxhints/AmphetaDesk RSS glitch
Authored by: gshenaut on Jun 29, '04 11:11:21PM
You know, I think that the underlying problem may be that the "Post a Comment" page has the item
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
in its header, which I think means that the text people enter in the text block will start out as iso, not utf-8. So, the easiest thing would be to either change the rss header to match, or to filter the text on the rss page through something like
iconv -t utf-8 -f iso8859-1
BTW, after noticing this, I changed my fixrss script to do it that way, using iconv.

Greg Shenaut

[ Reply to This | # ]