Hi,
I was wondering if someeone could help me with a problem i've been stuck on for ages and haven't been able to find the answer to.
I'm trying to syndicate my search engine results with RSS and I have it all setup producing the rss file but when i try to validate the feed using syndic8 or any of the other online validators I get the following errors (I think they're both related).
Error: description contains bad characters.
On Line: Corporate Clients \x95 To provide ongoing administrati....
AND,
Error: not well-formed (invalid token):
On Line: possible start date negotiable
the \x95 and the are giving me the trouble. How can I strip these characters out of the string variables in the PHP code? I've tried str_replace but then I just get the next one along, \x96 giving me trouble, and i don't want to have a replace statement for each code as I don't know where it'll end and what other problem characters I haven't discovered yet.
I think it's to do with encoding but i don't know what.
I've tried utf_encode, utf_decode, htmlentities, htmlspecialchars and i've tried putting the data inside a CDATA block, none of these work. And i've tried changing the <?xml version="1.0" encoding="iso-8859-1" ?> to all the different encoding types.
I would be very grateful for any help.
Thanks
Kerry