diff --git a/src/js/1p-filters.js b/src/js/1p-filters.js index 33978569a..c7949a11b 100644 --- a/src/js/1p-filters.js +++ b/src/js/1p-filters.js @@ -103,7 +103,7 @@ function exportUserFiltersToFile() { if (val) { vAPI.download({ - 'url': 'data:text/plain,' + encodeURIComponent(val), + 'url': 'data:text/plain;charset=utf-8,' + encodeURIComponent(val), 'filename': 'my-ublock-filters.txt' }); } diff --git a/src/js/about.js b/src/js/about.js index 4b5ebd34f..17e994299 100644 --- a/src/js/about.js +++ b/src/js/about.js @@ -39,7 +39,7 @@ var exportToFile = function() { } vAPI.download({ - 'url': 'data:text/plain,' + encodeURIComponent(JSON.stringify(userData)), + 'url': 'data:text/plain;charset=utf-8,' + encodeURIComponent(JSON.stringify(userData)), 'filename': 'ublock-backup.txt' }); }; diff --git a/src/js/whitelist.js b/src/js/whitelist.js index 0cd8dac1c..7df18e8ba 100644 --- a/src/js/whitelist.js +++ b/src/js/whitelist.js @@ -97,7 +97,7 @@ var exportWhitelistToFile = function() { if (val) { vAPI.download({ - 'url': 'data:text/plain,' + encodeURIComponent(val), + 'url': 'data:text/plain;charset=utf-8,' + encodeURIComponent(val), 'filename': 'my-ublock-whitelist.txt' }); }