I have a problem with rss feed.
When i do <title>This is a title </title>
The title is perfectly displayed in the feed
But when I ddo $ title = "this is tilte";
<title><![CDATA['$title']]></title>
The name does not appear at all.
It still does not work. I generate my rss feed dynamically and it looks like this:
$item_template="
<item>
<title>[[title]]</title>
<link>[[link]]</link>
<description><![CDATA[[[description]]]]></description>
<pubDate>[[date]]</pubDate>
</item>
";
and in the loop:
$s.=str_replace(
array("[[title]]","[[link]]","[[description]]","[[date]]"),
array(htmlentities($row["title"]),$url,$description,$date),
$item_template);
The problem is that the name has a euro sign. Then it appears in my rss validator, for example:
Â\x80
More detailed information:
Well, I have been struggling with this for the past few days, and I cannot find a solution. Therefore, I will begin generosity. Here is additional information:
- The information that goes into the feed is stored in the latin 1 database (which I administer)
- The problem occurs when there is an euro sign in the database. No matter how possible, or
€ - The euro sign sometimes appears as strange characters or as  \ x80
- .
- : codedump
- : , , ( , ) . , ,
<title></title>
, , .