I'm trying to scrap a site with iso-8859-1
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
I'm getting � for the accents. How can I configure the encoding for iso-8859-1?
For the moment, the encoding is not supported. The toString() method of the chunk buffer defaults the encoding to utf-8. You can save the raw response to a file, but I guess this is not what you want. http-get requires a patch to be able to pass a specific encoding if you're buffering the response body to a String object. I have plans to implement something in order to be able to return the buffer as Buffer object which would also fit the task.
Tks for the reply.
Do you know other module that I can do it? I had this same problem with request module. :/
Closed by relasing v0.4:
With this release people get generic buffer instances or strings in the designated encoding.