Hello,
I'm using Zend_Feed saveXml() to save a file with a RSS feed.
My feed source contains some special characters ISO-8859-1, that I do
convert to html entities before creating the feed:
$title=htmlentities($a['title'], ENT_QUOTES, "ISO-8859-1");
before:
[title] => test special chars àèéìòù
after:
[title] => test special chars
àèéìòù
Now I get the RSS feed ok, but I cannot have this XML saved with entities
without a declaration like this at the top of the RSS XML itself:
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
...
]>
I have seen other RSS feeds using this declaration at the top.
On the other hand if I do not convert the special chars into entities I get
this error:
DOMDocument::saveXML(): output conversion failed due to conv error, bytes
0xE0 0xE8 0xE9 0xEC
So, which is the right way to do?
Any ideas?
Thank you much.
--
View this message in context:
http://www.nabble.com/Zend-Feed-Rss-XML-and-Entities-for-special-chars-tp20234717p20234717.html
Sent from the Zend Framework mailing list archive at Nabble.com.