From 1c68ed4f4996ac6f905711a415b3a533fbd2e0f8 Mon Sep 17 00:00:00 2001 From: "nhotta%netscape.com" Date: Thu, 27 Jul 2006 14:51:19 +0000 Subject: [PATCH] Added code to pass default charset to directory viewer, bug 28787, r=law. --- suite/common/directory/directory.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/suite/common/directory/directory.js b/suite/common/directory/directory.js index 3d1e405a95bb..24f9015d1cb9 100644 --- a/suite/common/directory/directory.js +++ b/suite/common/directory/directory.js @@ -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; } }