I am trying to read a rss fead in php. Here is my code.\[code\]$content = file_get_contents("http://www.rtvslo.si/sport/"); //$content= mb_convert_encoding($content, 'UTF-8', // mb_detect_encoding($content, 'UTF-8, ISO-8859-1', true)); $x = new SimpleXmlElement($content); $x->addAttribute('encoding', 'UTF-8');echo "<ul>"; foreach($x->channel->item as $entry) { echo "<li><a href='http://stackoverflow.com/questions/13857221/$entry->link' title='$entry->title'>" . $entry->title . "</a></li>"; } echo "</ul>"; \[/code\]The problem is that in the feed there are letters such as ???? and I doesnt display them right. If echo the content the error remains, but if I write in a file it works fine. I have tried the mb_convert_encoding with no success. That is why I think I should have changed something with the xmlSimpleELement.