Tuesday 31 January 2017

Request body weird characters

var request = require("request"); var url = "http://ift.tt/1KThlkf"; request(url, function(error, response, body) { console.log(body); }); On my ubuntu machine I get�+��O��% And on my PC (windows) I get{"success":true,"lowest_price":"$6.38","volume":"2,370","median_price":"$6.97"} What's the problem? I'm sure it worked before..

Submitted January 31, 2017 at 08:54PM by lamerqo

No comments:

Post a Comment