Added code to pass default charset to directory viewer, bug 28787, r=law.

This commit is contained in:
nhotta%netscape.com 2006-07-27 14:51:19 +00:00
parent fb988d7c6f
commit 1c68ed4f49

View File

@ -64,9 +64,11 @@ function Init()
if (httpDS) httpDS = httpDS.QueryInterface(Components.interfaces.nsIHTTPIndex);
if (httpDS)
{
// TO DO - The encoding should really be determined
// from the current encoding as chosen by the user
httpDS.encoding = "ISO-8859-1";
// Use a default character set.
if (window._content.defaultCharacterset)
httpDS.encoding = window._content.defaultCharacterset;
}
}