Add support to UTF-8

This commit is contained in:
Manuel Barallobre 2017-05-30 07:25:59 +02:00
parent 4eff6128a2
commit 3f76d62211

View file

@ -45,7 +45,7 @@ module.exports = function (socket) {
conn.on('banner', function (d) {
// need to convert to cr/lf for proper formatting
d = d.replace(/\r?\n/g, '\r\n')
socket.emit('data', d.toString('binary'))
socket.emit('data', d.toString('utf-8'))
})
conn.on('ready', function () {