diff --git a/common/content/dactyl-overlay.js b/common/content/dactyl-overlay.js index 4b661344..76724ff1 100644 --- a/common/content/dactyl-overlay.js +++ b/common/content/dactyl-overlay.js @@ -17,7 +17,7 @@ modules.load = function load(script) { for (let [i, base] in Iterator(prefix)) { try { - loader.loadSubScript(base + script + ".js", modules); + loader.loadSubScript(base + script + ".js", modules, "UTF-8"); return; } catch (e) { diff --git a/common/content/dactyl.js b/common/content/dactyl.js index bb0b12e2..35e40281 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -301,7 +301,7 @@ const Dactyl = Module("dactyl", { * should be loaded. */ loadScript: function (uri, context) { - services.get("subscriptLoader").loadSubScript(uri, context); + services.get("subscriptLoader").loadSubScript(uri, context, File.defaultEncoding); }, userEval: function (str, context) {