Home  >  Article  >  php教程  >  PHP Simple HTML DOM Parser的编码问题

PHP Simple HTML DOM Parser的编码问题

WBOY
WBOYOriginal
2016-06-06 19:59:22811browse

我用PHP Simple HTML DOM Parser在一个名为content.php的页面中解析多个网站, 每次解析一个网站,有的对,有的错。 原因:跟content.php的编码一样的页面解析就对,否则错。其中,编码指的是content.php保存的编码格式,不是content.php中定义的meta conten

我用PHP Simple HTML DOM Parser在一个名为content.php的页面中解析多个网站,

每次解析一个网站,有的对,有的错。

原因:跟content.php的编码一样的页面解析就对,否则错。其中,编码指的是content.php保存的编码格式,不是content.php中定义的这里的charset。

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