mirror of https://github.com/gorhill/uBlock.git
Use utf-8 for data: URIs when downloading
This commit is contained in:
parent
5e587aa42f
commit
86222cb368
|
@ -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'
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
});
|
||||
};
|
||||
|
|
|
@ -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'
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue