murphy_flush的博客抓取这个网页http://www.runoob.com/nodejs/...出现乱码,网页编码为utf-8,用过iconv-lite还是不行,这是为什么? var http=require("http"); var go=require("iconv-lite") http.get(...
weixin_39739234的博客果不其然报错了:SyntaxError: Unexpected token in JSON at position 0没办法,只好换一种方法,将接受到的Buffer对象toString,然后打印出来发现是乱码。第一感觉是编码问题,google一下然后看官方文档,总结三种...