rem: var charsetAtom = ccm.GetCharsetAtom(charset); charsetTitle = ccm.GetCharsetTitle(charsetAtom); dump(charsetTitle);  
add: try { var charsetAtom = ccm.GetCharsetAtom(charset); charsetTitle = ccm.GetCharsetTitle(charsetAtom); } catch (ex) { dump("failed to get a charset title of " + charset + "!\n"); charsetTitle = ""; } 
context: function GetCharsetUIString(){  try {    prefs = Components.classes['component://netscape/preferences'];    prefs = prefs.getService();    prefs = prefs.QueryInterface(Components.interfaces.nsIPref);  }  catch (ex) {    dump("failed to get prefs service!\n");    prefs = null;  }  var send_default_charset = prefs.CopyCharPref("mailnews.send_default_charset");  var charset = msgCompose.compFields.GetCharacterSet();  charset = charset.toUpperCase();  if (charset == "US-ASCII")    charset = "ISO-8859-1";  if (charset != send_default_charset) {    var charsetTitle = "";    try {      var ccm = Components.classes['component://netscape/charset-converter-manager'];      ccm = ccm.getService();      ccm = ccm.QueryInterface(Components.interfaces.nsICharsetConverterManager2);    }    catch (ex) {      dump("failed to get charset-converter-manager service!\n");      ccm = null;    }    // get a localized string    var charsetAtom = ccm.GetCharsetAtom(charset);    charsetTitle = ccm.GetCharsetTitle(charsetAtom);    dump(charsetTitle);    return " - " + charsetTitle;  }  return "";}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/06e130de11cdee50bd83432f31cb35c4ee02f559/MsgComposeCommands.js/clean/mailnews/compose/resources/content/MsgComposeCommands.js