homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / RSS, ATOM, and Related Technologies
Forum Library, Charter, Moderators: bill & werty

RSS, ATOM, and Related Technologies Forum

feedvalidation problem

Msg#: 542 posted 1:00 am on Apr 25, 2006 (gmt 0)

I'm creating an rss feed in a somewhat unorthodox fashion, and I've ironed out most of the problems. However, when trying to validate the feed, I'm getting the warning below. I'm new to this and trying to get it as perfect as I can. Any idea how to fix this without access to the server?

Your feed appears to be encoded as "ISO-8859-1", but your server is reporting "US-ASCII"

Having read the help file, I'm still lost.

The apache headers + first few lines of the file header are:

HTTP/1.1 200 OK

Date: Mon, 24 Apr 2006 23:00:56 GMT

Server: Apache/2.0.51 (Fedora)

Last-Modified: Mon, 24 Apr 2006 23:00:01 GMT

ETag: "8c9606-345b-32c23e40"

Accept-Ranges: bytes

Content-Length: 13403

Connection: close

Content-Type: text/xml

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN"
<rss version="0.91">



WebmasterWorld Senior Member encyclo us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 542 posted 1:15 am on Apr 25, 2006 (gmt 0)

When you use the mime type
text/xml you need to explicitly specify the character encoding with an HTTP header rather than just in the XML prolog. Dependent on your setup, you can do this via server-side scripting which is generating the RSS file, or via a .htaccess file for Apache.

AddType text/xml;charset=iso-8859-1 xml

This is because you are delivering the XML file via HTTP, whose character encoding rules take precedence other the charset defined in the document.


Msg#: 542 posted 2:05 am on Apr 25, 2006 (gmt 0)

Thank You! Added added the line to .htaccess and it now validates fine.

I don't quite understand it (ok, I'm trying NOT to), but it works.

Thanks again.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / RSS, ATOM, and Related Technologies
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved