Ok, got it working by myself. Works like charm with iconv-lite. Found the solution here: http://stackoverflow.com/questions/12040643/nodejs-encoding-using-request
That’s the working code section now:
var iconv = require('iconv-lite');
request({
encodeURI("http://192.168.178.11/state.cgi?device_id=" + deviceIds),
method: 'GET',
encoding: null,
}, function(error, response, body) {
var bodyWithCorrectEncoding = iconv.decode(body, 'iso-8859-1');
...
Even the encoding: null is important! Without it does not show the specified encoding.
BR,