PhantomJS 抓取gbk页面乱码 有什么方法解决?
这两个参数可以指定编码 ...
--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 就可以了 ...
参考:
[1] API Reference - PhantomJS
phantom.outputEncoding="gbk";