Use UTF-8 encoding for the IRCConnection socket
authorJack Allnutt <m2ys4u@Gmail.com>
Thu, 17 Nov 2011 14:13:38 +0000 (14:13 +0000)
committerJack Allnutt <m2ys4u@Gmail.com>
Thu, 17 Nov 2011 14:13:38 +0000 (14:13 +0000)
server/app.js

index 3971409d252cb0e8d044a3d57f0b0803bcf7be1d..8da196cbf9d4f34c21b0679d4a4ac63c5c405d17 100644 (file)
@@ -921,7 +921,7 @@ this.IRCConnection = function (websocket, nick, host, port, ssl, password, callb
         ircSocket = tls.connect(port, host, {}, onConnectHandler);
     }
 
-    ircSocket.setEncoding('ascii');
+    ircSocket.setEncoding('utf-8');
     this.IRC = {options: {}, CAP: {negotiating: true, requested: [], enabled: []}, registered: false};
 
     this.on('error', function (e) {