mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Use utf-8 for data: URIs when downloading
This commit is contained in:
parent
5e587aa42f
commit
86222cb368
3 changed files with 3 additions and 3 deletions
|
@ -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 a new issue