QueryList遇到繁体字乱码
加上这个encoding(‘gb2312’,‘gb2312’); 转码就行
$html = QueryList::get('http://www.gember_alllist.asp?page=' . $i)->encoding('gb2312','gb2312');如果上述方法无效
则在后端 php 方法上加上 header(“Content-type: text/html; charset=gb2312”);
或者使用 removeHead() 方法移除html头部
data=QueryList::html(data = QueryList::html(html)->rules($rule) ->removeHead()->query()->getData();
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。

