用phantomjs抓取html乱码的解决方案:
phantomjs --output-encoding=gbk test.js http://webscan.360.cn/index/checkwebsite?url=www.coding123.net
https://blog.csdn.net/kaosini/article/details/47252457
这两个参数可以指定编码 ...
--output-encoding=encoding
sets the encoding used for terminal output (default is utf8).
--script-encoding=encoding
sets the encoding used for the starting script (default is utf8).
设置成 GBK 就可以了 ...
或者
phantom.outputEncoding="gbk";