Part of fix for nsbeta2+ bug # 28787: FTP listings of non-ascii filenames. r=me

This commit is contained in:
rjc%netscape.com 2006-07-27 14:51:17 +00:00
parent 041e618c8e
commit d510542259

View File

@ -55,10 +55,15 @@ function Init()
} }
debug("base URL = " + baseURI + "\n"); debug("base URL = " + baseURI + "\n");
// Note: set encoding for FTP URLs BEFORE setting "ref"
HTTPIndex.encoding = "ISO-8859-1";
// re-root the tree
tree.setAttribute("ref", baseURI); tree.setAttribute("ref", baseURI);
} }
function OnClick(event) function OnClick(event)
{ {
if( event.type == "click" && if( event.type == "click" &&