if (!mLastDisplayURI.IsEmpty()) { nsCOMPtr <nsIMsgMessageService> messageService; nsresult rv = GetMessageServiceFromURI(mLastDisplayURI.get(), getter_AddRefs(messageService));  if (NS_SUCCEEDED(rv) && messageService) { nsCOMPtr<nsIWebShell> webShell(do_QueryInterface(mDocShell)); messageService->DisplayMessage(mLastDisplayURI.get(), webShell, mMsgWindow, nsnull, characterSet, nsnull); } }  return NS_OK;
if (nsnull != mWebShell) { mWebShell->SetDefaultCharacterSet(characterSet); } return NS_OK;
NS_IMETHODIMP nsMessenger::SetDocumentCharset(const PRUnichar *characterSet){	// We want to redisplay the currently selected message (if any) but forcing the   // redisplay to use characterSet  if (!mLastDisplayURI.IsEmpty())  {    nsCOMPtr <nsIMsgMessageService> messageService;    nsresult rv = GetMessageServiceFromURI(mLastDisplayURI.get(), getter_AddRefs(messageService));        if (NS_SUCCEEDED(rv) && messageService)    {      nsCOMPtr<nsIWebShell> webShell(do_QueryInterface(mDocShell));      messageService->DisplayMessage(mLastDisplayURI.get(), webShell, mMsgWindow, nsnull, characterSet, nsnull);    }  }    return NS_OK;}