[eluser]MASS MASS[/eluser]
i am calling one function like this
------------code in controller ---------------
$this->load->library('simplepie');
$arr_data['feed'] = new SimplePie();
$arr_data['feed']->set_feed_url('http://images.apple.com/main/rss/hotnews/hotnews.rss');
$arr_data['feed']->set_cache_location('cache');
$arr_data['feed']->init();
$arr_data['feed']->handle_content_type();
-------------end of code in controller ---------------
in view page i am calling like this
------------------
<?php
if ($feed->data)
{
$max = $feed->get_item_quantity(20);
for ($x = 0; $x < $max; $x++)
{
$item = $feed->get_item($x);
echo $item->get_title();
echo htmlentities($item->get_description());
}
}
?>
problem is .............i am getting results with unknown characters......in description content as shown below.........
iTunes customers in the UK can now purchase and download hit television programming from ABC Studios, the Disney Channel, MTV, Nickelodeon, and Paramount Comedy for £1.89 an episode. The programming includes such shows as the Emmy Award-winning series “Lost,â€
“Desperate Housewives,†“Grey’s Anatomy,†and “Ugly Betty,†as well as locally-produced UK series, including MTV’s “Barrio 19,†Nickelodeon’s “Genie in the House,†and Paramount Comedy’s “Comedy Blue.â€
please help me
thx