【发布时间】:2012-03-07 14:46:14
【问题描述】:
我正在使用 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,我显然拥有..所以我不太确定是什么原因造成的。
有什么想法吗?
【问题讨论】:
标签: parsing encoding utf-8 rss simplepie