我遇到处理请求的问题,其中url包含法语口音。
var url="http://www.babla.ru/dû";
console.log(url); //../dû, here it's OK
var requestOptions = { encoding: "utf8", method: "GET", uri: url};
request(requestOptions, function (err, resp, body) {
console.log(resp.request.uri.href); //../d, here û is missing!
...
}
});