我正在使用 SimplePie 解析 RSS 提要,我得到以下输出:
Don't forget our "Spot It, Post It" .....
我的代码是:
<?php
header('Content-type:text/html; charset=utf-8');
require_once('rss/simplepie.inc');
// We'll process this feed with all of the default options.
$feed = new SimplePie();
// Set which feed to process.
$feed->set_feed_url('FeedURL');
$feed->enable_cache(true);
$feed->set_cache_duration(3600);
$feed->set_cache_location('cache');
$feed->init();
$feed->handle_content_type();
?>
我正在使用 HTML5 Doctype 而且我还有:<meta charset="charset=utf-8">
我已经查过了,一切都在谈论将字符集更改为我显然拥有的 UTF-8 ......所以我不太确定还有什么原因导致这种情况。
有任何想法吗?