加上這個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頭部
html)->rules($rule) ->removeHead()->query()->getData();