rem: prefvalue = pref.getLocalizedUnicharPref("intl.charset.detector"); 
add: prefvalue = pref.getComplexValue("intl.charset.detector", Components.interfaces.nsIPrefLocalizedString); 
context: function UpdateCharsetDetector(){    var pref = Components.classes['@mozilla.org/preferences;1'];    if (pref) {        pref = pref.getService();        pref = pref.QueryInterface(Components.interfaces.nsIPref);    }     if (pref) {        prefvalue = pref.getLocalizedUnicharPref("intl.charset.detector");        if (prefvalue == "") prefvalue = "off";dump("intl.charset.detector = "+ prefvalue + "\n");    }    var prefvalue = 'chardet.' + prefvalue;    var menuitem = document.getElementById(prefvalue);    if (menuitem) {        menuitem.setAttribute('checked', 'true');    }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/faf03ce445712b372523f881cc3144cfadc7a611/charsetOverlay.js/buggy/xpfe/global/resources/content/charsetOverlay.js