从php字符串中删除奇怪的字符
2022-08-30 15:51:08
这就是我现在拥有的
将 RSS 源绘制到 php 中,来自 rss 源的原始 xml 显示:
Paul’s Confidence
到目前为止,我拥有的php是这个。
$newtitle = $item->title;
$newtitle = utf8_decode($newtitle);
以上返回;
Paul?s Confidence
如果我删除utf_decode,我得到这个
Paul’s Confidence
当我尝试str_replace;
$newtitle = str_replace("”", "", $newtitle);
它不起作用,我得到;
Paul’s Confidence
有什么想法吗?