I try to parse a \"iso-8859-1\" page and save to my DB with utf-8, this is my code:
var buffer = iconv.encode(data, \"iso-8859-1\"); data = iconv.decode(buff
It's working for me:
var tempBuffer = new Buffer(response.body, 'iso-8859-1'); var iconv = new Iconv('ISO-8859-1', 'UTF-8'); var tempBuffer = iconv.convert(tempBuffer);
used 'iconv' module https://github.com/bnoordhuis/node-iconv