Home  >  Article  >  Backend Development  >  php过滤掉无法识别的疑问号字符

php过滤掉无法识别的疑问号字符

WBOY
WBOYOriginal
2016-06-13 12:29:531219browse

php过滤掉无法识别的问号字符
有一个文件,txt打开后有几处显示问号
salisbury rd ?open ?requested CONTRAC
网页上也显示问号,意思应该是不识别

想把这些不识别的字符过滤掉。
试过了几个方法都不行

$str = file_get_contents('example_text.txt');<br />
echo $str;

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn