Hi Everyone
Does anyone have any ideas as to why the xml content isn't rendering properly, this is what I'm getting in my browser (Firefox):
Even if you’re getting a teeny bit tired of the spotlight, don’t wish it away. You’re coming to the end of the annual cycle which sees the Sun in your sign – there’s just over a week of it left. Once that’s over, it means you’ve had your birthday, you’re another year older and wiser and then it’s someone else’s turn to be center stage for a while. If you haven’t yet done anything to spruce up your image and appearance, do it now. This is your annual make-over moment, remember! Anything which presents YOU to the world – your clothes, your hairdo, your website – is primed for renewal now.
Do I need to to use some sort of php code like stripslashes to get it to render correctly - please help it looks pretty awful?
Best Wishes
Madeleine
Thank you David, I shouldn't have posted really as I did eventually figure it out.
Best Wishes
Madeleine
Hi Madeleine,
This is a character-set mismatch issue - the data in your XML feed is not in the same character set as the HTML page being generated by your script. It's easy to fix with a header() statement at the top of your PHP code. First of all, try UTF-8 as follows:
header("Content-Type: text/html; charset=utf-8");
Otherwise, it is most likely to be:
header("Content-Type: text/html; charset=iso-8859-1");
The header code must come before your script generates any output, otherwise PHP cannot set the HTTP header...
Hope this helps!
Cheers,
David.