Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: can't get my RSS to validate - Help!!

From: lkrubner@---------.--- (--------)
To: NULL
Date: 5/22/2004 1:12:00 PM
dingbat@c... (Andy Dingley) wrote in message news:<28200a19.0405060335.601df2dd@p...>...
> > However, it still fails validation at
> > http://feeds.archive.org/validator/
> 
> The version this morning seems OK.  I suggest you keep an archive of
> these bad feeds under static URLs, so that we can more easily see the
> problems.
>  
> > The problem is "bad characters". I'm not sure how to start to debug
> > that. What is the first thing I should look for?
> 
> Most likely thing is the use of HTML entities (like &eacute; ) that
> aren't valid because RSS is an XML protocol and doesn't recognise
> these HTML-defined entities. A _very_ common error in RSS feeds.

I'm stumped when I think of all the possible user inputs that can mess
up an RSS feed. Myself and a friend have been working on some weblog
software for a year now - the weblog entries show up in the RSS feed.
Lots and lots of problems come up - people might copy and paste
something from Word in their weblog and then get a Windows character
that is not in the defined char set for the RSS feed. How to protect
against that. Or people can, as you say, add in some HTML entities, or
sometimes the software does that automatically.

It's true that I could write filters for each possible problem as it
comes up, but it seems like it would take a mountain of code and there
would never be an end to it - after I figure out how to convert
unexpected European accented characters, then I'd have all the Asian
alphabets to work on.

I guess I'm asking if there is an easy, elegant way to convert a set
of characters to some particular character set. I don't know of any
myself. What strategies have other programmers used when tackling this
problem?


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent