Skip to content

Commit f104a6b

Browse files
committed
Merge pull request #2 from mozartdiniz/master
to avoid problems with subtitle with a chatset different than utf-8
2 parents 4babf1d + e548df9 commit f104a6b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/endpoints.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ ep.prototype.get = function(action, params, cb) {
3737
var data = '';
3838
var req = http.request(this.options);
3939
req.on('response', function (response) {
40+
41+
//to avoid problems with subtitle with a chatset different than utf-8
42+
response.setEncoding('binary');
43+
4044
response.on('data', function (chunk) {
4145
data += chunk;
4246
}).on('end', function(){

0 commit comments

Comments
 (0)