SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: RSS Validation

  1. #1
    SitePoint Addict
    Join Date
    Jul 2004
    Location
    CA
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    RSS Validation

    I created a RSS feed, but when I validate the feed I get the following message.

    Your feed appears to be encoded as 'UTF-8', but your server is reporting 'US-ASCII'

    Also, I have added this to my feed <?xml version="1.0" encoding="iso-8859-1" ?> (before I just had <?xml version="1.0"?>

    to see if it would help and I get this message.

    This feed is valid, but may cause problems for some users. We recommend fixing these problems.

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

    My feed is at http://www.filipinaeyes.com/Dating-RSS-Feed/rss.xml

    I use Feed Validator for the validation. It is located at: http://feedvalidator.org/

    When validator gives me the above messages they provide a solution, but it is all greek to me.

    Can anyone explain the problem and how to fix it in plain english.

    thanks
    steve

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    If you're using Apache, you can set the character encoding for your file in .htaccess.

    Place this line in your .htaccess file at the root of your site:
    Code:
    <Files /Dating-RSS-Feed/rss.xml>
    ForceType application/rss+xml;charset=iso-8859-1
    </Files>
    If you do this, the server will report a charset of "iso-8859-1" (or whatever you specify in the charset part of the Files directive).

  3. #3
    Non-Member
    Join Date
    Aug 2002
    Location
    USA
    Posts
    544
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Or if it's a PHP script put this (or similar) at the top:

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


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •