Open kjs104901 opened 6 years ago
In the source code, it forces data to be decoded under ascii. data = data.toString("ascii");
data = data.toString("ascii");
When you wanna decode under other charset for Asian language etc., you have to make a buffer accumulating incoming data
bufferedBuffer = Buffer.concat([bufferedBuffer, data]);
And callback it.
callback(responseCopy, bufferedDataCopy, bufferedBufferCopy);
Now you can access low level buffer in your code.
popClient.on("retr", function(status, msgnumber, data, rawdata, buffer) {} );
self.setCallback(function(resp,` data, buffer) { self.emit("retr", resp, msgnumber, returnValue, data, buffer);
You can use iconv to decode it.
In the source code, it forces data to be decoded under ascii.
data = data.toString("ascii");
When you wanna decode under other charset for Asian language etc., you have to make a buffer accumulating incoming data
And callback it.
Now you can access low level buffer in your code.
You can use iconv to decode it.