nsAutoString inputCharSet(aCharset); muDV->SetHintCharacterSet(inputCharSet.GetUnicode()); muDV->SetHintCharacterSetSource((PRInt32)aSource);
muDV->SetHintCharacterSet(nsDependentCString(aCharset)); muDV->SetHintCharacterSetSource(aSource);
nsWebShell::LoadDocument(const char* aURL,                         const char* aCharset,                         nsCharsetSource aSource){  // XXX hack. kee the aCharset and aSource wait to pick it up  nsCOMPtr<nsIContentViewer> cv;  NS_ENSURE_SUCCESS(GetContentViewer(getter_AddRefs(cv)), NS_ERROR_FAILURE);  if (cv)  {    nsCOMPtr<nsIMarkupDocumentViewer> muDV = do_QueryInterface(cv);      if (muDV)    {      nsCharsetSource hint;      muDV->GetHintCharacterSetSource((PRInt32 *)(&hint));      if( aSource > hint )       {        nsAutoString inputCharSet(aCharset);        muDV->SetHintCharacterSet(inputCharSet.GetUnicode());        muDV->SetHintCharacterSetSource((PRInt32)aSource);        if(eCharsetReloadRequested != mCharsetReloadState)         {          mCharsetReloadState = eCharsetReloadRequested;          nsAutoString url(aURL);          LoadURL(url.GetUnicode());        }      }    }  }  return NS_OK;}