Last active
August 29, 2015 13:59
-
-
Save popomore/10986324 to your computer and use it in GitHub Desktop.
输出是乱码
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var urllib = require('urllib'); | |
// 乱码 | |
urllib.request('http://static.alipayobjects.com/build/js/arale.js', {}, function (err, data, res) { | |
console.log(data.toString()); | |
}); | |
// 正常 | |
urllib.request('https://a.alipayobjects.com/build/js/arale.js', {}, function (err, data, res) { | |
console.log(data.toString()); | |
}); |
fengmk2
commented
Apr 17, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment