rem: var encodeName = fromUnicode(e.inputData + " "); encodeName = encodeName.substr(0, encodeName.length -1); chan = encodeName; 
add: var encodedName = fromUnicode(e.inputData + " ", client.currentObject.charset); encodedName = encodedName.substr(0, encodedName.length -1); chan = encodedName; 
context: function cli_inames (e){    var chan;        if (!e.network)    {        client.currentObject.display (getMsg("cli_inamesMsg"), "ERROR");        return false;    }    if (e.inputData)    {        if (!e.network.isConnected())        {            client.currentObject.display (getMsg("cli_inamesMsg2",                                                 e.network.name), "ERROR");            return false;        }        var encodeName = fromUnicode(e.inputData + " ");        encodeName = encodeName.substr(0, encodeName.length -1);        chan = encodeName;    }    else    {        if (client.currentObject.TYPE != "IRCChannel")        {            client.currentObject.display (getMsg("cli_inamesMsg3"),"ERROR");            return false;        }                chan = e.channel.name;    }        client.currentObject.pendingNamesReply = true;    e.server.sendData ("NAMES " + chan + "\n");        return true;    }
meta: 1567	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1567/9c64e003da602a567baf0247d41a77117a39e7d4/handlers.js/buggy/xul/content/handlers.js