There is such a parser:

$url = 'rss.xml'; //адрес RSS ленты $rss = simplexml_load_file($url); //Интерпретирует XML-файл в объект //цикл для обхода всей RSS ленты foreach ($rss->channel->item as $item) { echo '<h1>'.$item->title.'</h1>'; //выводим на печать заголовок статьи echo $item->description; //выводим на печать текст статьи } 

How to make it so that when you parse any site, there is a normal encoding, and not a crocodile?

    1 answer 1

    iconv () to help, in each xml in the header, the encoding seems to be specified - try to pair it first, and then translate it into the one you need.