Skip to content

添加完整的编码方式属性,DOMDocument::loadHTML才能正确识别UTF-8#48

Open
guotd wants to merge 2 commits intoowner888:masterfrom
guotd:master
Open

添加完整的编码方式属性,DOMDocument::loadHTML才能正确识别UTF-8#48
guotd wants to merge 2 commits intoowner888:masterfrom
guotd:master

Conversation

@guotd
Copy link
Copy Markdown

@guotd guotd commented Mar 30, 2017

比如,demo中京华网页面(http://news.jinghua.cn/20161205/f256601.shtml) 抓取会进到这个分支,不使用完整属性抓取结果中文是乱码。

@owner888
Copy link
Copy Markdown
Owner

谢谢提醒,已经更新代码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants