From a7b156e902a90f0ce613973b90448214634d436d Mon Sep 17 00:00:00 2001 From: megrez Date: Thu, 28 May 2015 11:15:39 +0800 Subject: [PATCH] Fix Binary Error --- node_modules/thrift/protocol.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/node_modules/thrift/protocol.js b/node_modules/thrift/protocol.js index b5e1ab8..fe66375 100644 --- a/node_modules/thrift/protocol.js +++ b/node_modules/thrift/protocol.js @@ -244,7 +244,9 @@ TBinaryProtocol.prototype.readBinary = function() { } TBinaryProtocol.prototype.readString = function() { - var r = this.readBinary().toString('binary'); + // Fix: utf8 binary read error + // Author: Megrez Lu + var r = this.readBinary().toString('utf-8'); // console.log("readString: " + r); return r; }