Welcome Guest, Not a member yet? Register   Sign In
Retriveing Rss results getting problem
#1

[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());

}
}


?&gt;
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


Messages In This Thread
Retriveing Rss results getting problem - by El Forum - 08-30-2007, 01:55 AM
Retriveing Rss results getting problem - by El Forum - 08-30-2007, 03:53 AM
Retriveing Rss results getting problem - by El Forum - 08-30-2007, 11:23 PM
Retriveing Rss results getting problem - by El Forum - 04-29-2009, 10:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB