Problem with special char in MySQL and XML [message #174834] |
Tue, 12 July 2011 20:02 |
Sarah
Messages: 30 Registered: December 2010
Karma:
|
Member |
|
|
Hi! I've a table UTF8_general_ci where I've symbols like: & è , à
' ...
I've seen that when I try to generate an XML file (that works OK with
other tables) I show this error:
Warning: SimpleXMLElement::addChild() [simplexmlelement.addchild]:
unterminated entity reference Pizza in /var/www/domain.com/xmlfeed.php
on line 164
In my PHP code I've something like this:
$aaa->addChild('date', strip_tags(utf8_encode($row{'Date'})) );
$aaa->addChild('title', strip_tags(utf8_encode($row{'Title'})) );
Where is it my error?
Thanks
|
|
|