rem: httpDS.encoding = window._content.defaultCharacterset; 
add: { httpDS.encoding = window._content.defaultCharacterset; } 
context: function Init(){    debug("directory.js: Init()\n");    // Initialize the tree's base URL to whatever the HTTPIndex is rooted at    var baseURI = HTTPIndex.BaseURL;    // fix bug # 37102: if its a FTP directory    // ensure it ends with a trailing slash    if (baseURI && (baseURI.indexOf("ftp://") == 0) &&    	(baseURI.substr(baseURI.length - 1) != "/"))    {    	debug("append traiing slash to FTP directory URL\n");    	baseURI += "/";    }    debug("base URL = " + baseURI + "\n");    // Note: Add the HTTPIndex datasource into the tree    var tree = document.getElementById('tree');    // Note: set encoding BEFORE setting "ref" (important!)    var RDF = Components.classes["component://netscape/rdf/rdf-service"].getService();    if (RDF)    RDF = RDF.QueryInterface(Components.interfaces.nsIRDFService);    if (RDF)    {        var httpDS = RDF.GetDataSource("rdf:httpindex");        if (httpDS) httpDS = httpDS.QueryInterface(Components.interfaces.nsIHTTPIndex);        if (httpDS)        {            httpDS.encoding = "ISO-8859-1";            // Use a default character set.            if (window._content.defaultCharacterset)              httpDS.encoding = window._content.defaultCharacterset;        }    }    // root the tree (do this last)    tree.setAttribute("ref", baseURI);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/f7b26a1e4e3b392ec90d0ffe84e69ea74599b9fb/directory.js/clean/xpfe/components/directory/directory.js