hello,

our rss feed is at http://alltherides.com/feed.xml

For some strange reason, when you go there it randomly either generates the feed correctly or shows just a text version of everything without any links.

Can anyone help us with this mess ?

Thanks

    It seems to be sending text/html sometimes and application/xhtml+xml others.
    Since this has a .xml extension, are you setting the headers with php?
    Can you show the relevant code?

    For rss feeds, I normally send the following headers:

    <?php
    //
    header('Content-Type: application/rss+xml; charset=utf-8');

    HTH.

      thanks so much for your reply

      Tried all 3 headers and still get the same random behaviour:

      
      <?php
      header('Content-Type: application/rss+xml; charset=utf-8');
      //header("Content-Type: application/rss+xml");
      //header("Content-Type: application/xml; charset=ISO-8859-1"); 
      
      
      
      
        $output.='?xml version="1.0" encoding="ISO-8859-1"?';
      
        $output.='>';
      
      
      
        echo $output;
        ?><rss version="2.0"
      	xmlns:content="http://purl.org/rss/1.0/modules/content/"
      	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
      	xmlns:dc="http://purl.org/dc/elements/1.1/"
      	xmlns:atom="http://www.w3.org/2005/Atom">
      
      
      
      
      <channel>
      
      <title>Latest Rides at AllTheRides.com</title>
      <atom:link href="http://alltherides.com/feed.xml" rel="self" type="application/rss+xml" />
      <link>http://alltherides.com/feed.xml</link>
      <description>News covering All the Rides</description>
      <pubDate><?php echo date('D, d M Y H:i:s O');?></pubDate>
      
      <generator>http://alltherides.com/</generator>
      <language>en</language>
      
      

        It appears that our feed at http://alltherides.com/feed.xml is randomly being displayed in UTF-8 or ISO-8859-1

        Whenever it is in UTF-8 it displays fine. WHen it is in ISO-8859-1 it shows up in just text form.

        Any help at all ?????

        We have used several headers like:

        header('Content-Type: application/rss+xml; charset=utf-8');
        

        but nothing seems to be working

          Write a Reply...