Welcome to WebmasterWorld Guest from 54.166.102.61

Forum Moderators: bill & werty

feedvalidation problem

   
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"
"http://my.netscape.com/publish/formats/rss-0.91.dtd">
<rss version="0.91">

1:15 am on Apr 25, 2006 (gmt 0)

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



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.

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.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month