Permalink
Browse files

Use utf8

  • Loading branch information...
ereslibre committed Apr 1, 2013
1 parent d6363b1 commit e030ddb04a5a26190d5529a3a9cd77fcfac90c50
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/irc.js
View
@@ -590,7 +590,7 @@ Client.prototype.connect = function ( retryCount, callback ) { // {{{
(self.opt.certExpired &&
self.conn.authorizationError === 'CERT_HAS_EXPIRED')) {
// authorization successful
- self.conn.setEncoding('hex');
+ self.conn.setEncoding('utf8');
if ( self.opt.certExpired &&
self.conn.authorizationError === 'CERT_HAS_EXPIRED' ) {
util.log('Connecting to server with expired certificate');
@@ -614,7 +614,7 @@ Client.prototype.connect = function ( retryCount, callback ) { // {{{
}
self.conn.requestedDisconnect = false;
self.conn.setTimeout(0);
- self.conn.setEncoding('hex');
+ self.conn.setEncoding('utf8');
self.conn.addListener("connect", function () {
if ( self.opt.password !== null ) {
self.send("NICK", self.opt.nick + ':' + self.opt.password);

0 comments on commit e030ddb

Please sign in to comment.