rv = msgWindow->SetMailCharacterSet(aCharacterSet);
rv = msgWindow->SetMailCharacterSet(!nsCRT::strcasecmp(aCharacterSet, "us-ascii") ? NS_LITERAL_STRING("ISO-8859-1").get() : NS_ConvertASCIItoUCS2(aCharacterSet).get());
SetMailCharacterSetToMsgWindow(MimeObject *obj, const PRUnichar *aCharacterSet){  nsresult rv = NS_OK;  if (obj && obj->options)  {    mime_stream_data *msd = (mime_stream_data *) (obj->options->stream_closure);    if (msd)    {      nsIChannel *channel = msd->channel;      if (channel)      {        nsCOMPtr<nsIURI> uri;        channel->GetURI(getter_AddRefs(uri));        if (uri)        {          nsCOMPtr<nsIMsgMailNewsUrl> msgurl (do_QueryInterface(uri));          if (msgurl)          {            nsCOMPtr<nsIMsgWindow> msgWindow;            msgurl->GetMsgWindow(getter_AddRefs(msgWindow));            if (msgWindow)              rv = msgWindow->SetMailCharacterSet(aCharacterSet);          }        }      }    }  }  return rv;}