binaryParser: fixed text protocoll

This commit is contained in:
Alexander Sulfrian 2011-06-07 16:12:04 +02:00
parent c513780fae
commit 671a5c52ff

View File

@ -227,11 +227,7 @@ p.parseIntArray = p.parseStringArray = function(value) {
};
p.parseText = function(value) {
var convertToChar = function(chr) {
return String.fromCharCode(chr);
};
return value.map(convertToChar).join('');
return value.toString('utf8');
};
module.exports = BinaryParser;