mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
Added code to pass default charset to directory viewer, bug 28787, r=law.
This commit is contained in:
parent
fb988d7c6f
commit
1c68ed4f49
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user