我使用了SimplePie解析一個RSS feed,而我得到以下的輸出:了SimplePie RSS解析器 - 編碼和怪誕形象甚至UTF-8
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文檔類型,我也有:<meta charset="charset=utf-8">
我看着它,有關更改字符集爲UTF-8,我已清楚一切談判..所以我也不太知道還有什麼是造成這一點。
任何想法?