return res;
return NS_OK;
nsresult nsComposeAppCore::SetDocumentCharset(class nsString const & aCharset) {	nsresult res = NS_OK;	if (nsnull != mWindow) 	{		nsIDOMDocument* domDoc;		res = mWindow->GetDocument(&domDoc);		if (NS_SUCCEEDED(res) && nsnull != domDoc) 		{			nsIDocument * doc;			res = domDoc->QueryInterface(kIDocumentIID,(void**)&doc);			if (NS_SUCCEEDED(res) && nsnull != doc) 			{				doc->SetDocumentCharacterSet(aCharset);							NS_RELEASE(doc);			}						NS_RELEASE(domDoc);		}	}  // Set charset, this will be used for the MIME charset labeling.  mMsgCompFields->SetCharacterSet(nsAutoCString(aCharset), NULL);		return res;}