我對使用simplexml_load_string的非標準字符有困難。simplexml_load_string奇怪的字符
我已經使用file_get_contents加載了一份報紙xml提要。如果我打印到屏幕上的內容,我收到了標題的文章作爲一個:
<title>‘If Legault were running in Alberta, he’d be more popular’: How right-wing is the CAQ?</title>
如果我再這樣做:
$feed = @simplexml_load_string($xml);
和打印$飼料的結果,標題已經改變到:
[title] => �If Legault were running in Alberta, he�d be more popular�: How right-wing is the CAQ?
有關如何阻止這些字符被顯示的任何建議是這樣的?