Added a check for force charset.

git-svn-id: svn://10.0.0.236/trunk@33150 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nhotta%netscape.com
1999-05-28 20:53:29 +00:00
parent a24d244b6d
commit 7ebe97b8fd
2 changed files with 14 additions and 0 deletions

View File

@@ -339,6 +339,13 @@ nsHTMLDocument::StartDocumentLoad(nsIURL *aURL,
charset = requestCharset;
}
}
const PRUnichar* forceCharsetFromWebShell = NULL;
rv = webShell->GetForceCharacterSet(&forceCharsetFromWebShell);
if(NS_SUCCEEDED(rv) && (nsnull != forceCharsetFromWebShell)) {
charset = forceCharsetFromWebShell;
//TODO: we should define appropriate constant for force charset
charsetSource = kCharsetFromPreviousLoading;
}
}
NS_IF_RELEASE(webShell);
#endif