L
lkrubner
I've a client who, I think, writes his essays in Microsoft Word on a
Macintosh, then copies and pastes it to a form to upload it to his
weblog. The weblog then creates an RSS feed. The weblog and RSS feed
are created using a simple PHP script I wrote.
His RSS feed is not validating, apparently because of the Word "smart
quotes". This is a guess on my part. I need to find out for sure what
character is causing the rss failure. How do I do that? Here is the
feed:
http://www.feedvalidator.org/check.cgi?url=http://www.alexmarshall.org/rss/page2494.xml#l25
What I'd like to do is run a simple search-n-replace for that character
right before the RSS is created. But I need to find a way to get that
character. Hex value? Byte code? How do I find such a thing?
I could teach this client not to make this mistake, but I assume (or
rather, I dream) at some point thousands of people will be using this
PHP script, and I can't teach all of them.
Macintosh, then copies and pastes it to a form to upload it to his
weblog. The weblog then creates an RSS feed. The weblog and RSS feed
are created using a simple PHP script I wrote.
His RSS feed is not validating, apparently because of the Word "smart
quotes". This is a guess on my part. I need to find out for sure what
character is causing the rss failure. How do I do that? Here is the
feed:
http://www.feedvalidator.org/check.cgi?url=http://www.alexmarshall.org/rss/page2494.xml#l25
What I'd like to do is run a simple search-n-replace for that character
right before the RSS is created. But I need to find a way to get that
character. Hex value? Byte code? How do I find such a thing?
I could teach this client not to make this mistake, but I assume (or
rather, I dream) at some point thousands of people will be using this
PHP script, and I can't teach all of them.