mCharsetReloadState = eCharsetReloadRequested;  nsAutoString url(aURL); LoadURL(url.GetUnicode());
PRInt32 hint; muDV->GetHintCharacterSetSource(&hint); if( aSource > hint ) { muDV->SetHintCharacterSet(NS_ConvertASCIItoUCS2(aCharset).get()); muDV->SetHintCharacterSetSource(aSource); if(eCharsetReloadRequested != mCharsetReloadState) { mCharsetReloadState = eCharsetReloadRequested; LoadURI(NS_ConvertASCIItoUCS2(aURL).get(), LOAD_FLAGS_NONE, nsnull, nsnull, nsnull); } }
nsWebShell::LoadDocument(const char* aURL,                         const char* aCharset,                         nsCharsetSource aSource){  // XXX hack. kee the aCharset and aSource wait to pick it up  if( aSource > mHintCharsetSource ) {    mHintCharset = aCharset;    mHintCharsetSource = aSource;    if(eCharsetReloadRequested != mCharsetReloadState)     {        mCharsetReloadState = eCharsetReloadRequested;        nsAutoString url(aURL);        LoadURL(url.GetUnicode());    }  }  return NS_OK;}