Bug #7715 --> set the character set for the messenger webshell to be UTF-8.

This commit is contained in:
mscott%netscape.com 1999-06-07 21:31:53 +00:00
Родитель dacf751762
Коммит 4a20109d30
1 изменённых файлов: 9 добавлений и 5 удалений

Просмотреть файл

@ -355,7 +355,15 @@ nsMessenger::SetWindow(nsIDOMWindow* aWin)
}
NS_RELEASE(webShell);
return NS_OK;
// libmime always converts to UTF-8 (both HTML and XML)
if (nsnull != mWebShell)
{
nsAutoString aForceCharacterSet("UTF-8");
mWebShell->SetForceCharacterSet(aForceCharacterSet.GetUnicode());
}
return NS_OK;
}
@ -765,7 +773,3 @@ nsMessenger::AccountManager(nsIDOMWindow *parent)
return rv;
}
// to load the webshell!
// mWebShell->LoadURL(nsAutoString("http://www.netscape.com"),
// nsnull, PR_TRUE, nsURLReload, 0);