Umlauts broken when doing get request
问题 I'm trying to query a webservice which answers with plain text. The text often has german umlauts in it. In the received stream the umlauts are broken. Any ideas what am I doing wrong? Regards, Torsten Here is the sample code: var request = require('request'); var uri = <anUriWithUserId>; request(uri, {encoding: 'utf8','content-type': 'text/plain; charset=UTF-8'}, function (error, response, body) { console.log("encoding: " + response.headers['content-encoding']); console.log("type: " +