nsAutoString ucs2("ucs2"); it->SetCharsetOverride(&ucs2); rv = it->QueryInterface(nsIHTMLContentSink::GetIID(),
if (aCharsetOverride != nsnull) { it->SetCharsetOverride(aCharsetOverride); } rv = it->QueryInterface(NS_GET_IID(nsIHTMLContentSink),
NS_New_HTMLToTXT_SinkStream(nsIHTMLContentSink** aInstancePtrResult,                             nsString* aOutString,                            PRUint32 aWrapColumn=0, PRUint32 aFlags=0){  nsCOMPtr<nsIHTMLToTXTSinkStream> it;  nsresult rv;  rv = nsComponentManager::CreateInstance(nsIHTMLToTXTSinkStream::GetCID(),                                          nsnull,                                          nsIHTMLToTXTSinkStream::GetIID(),                                          getter_AddRefs(it));  if (NS_SUCCEEDED(rv)) {    rv = it->Initialize(nsnull, aOutString, aFlags);    if (NS_SUCCEEDED(rv)) {      it->SetWrapColumn(aWrapColumn);      nsAutoString ucs2("ucs2");      it->SetCharsetOverride(&ucs2);      rv = it->QueryInterface(nsIHTMLContentSink::GetIID(),                              (void**)aInstancePtrResult);    }  }    return rv;}