summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Steinmetz <richard@steinmetz.cloud>2024-09-03 07:56:11 +0200
committerGitHub <noreply@github.com>2024-09-03 07:56:11 +0200
commit80bec770e3c567d567a99aa00bb6be14c542ab3c (patch)
treeccc5c7d1b35c92d0e379372d5647bf3264ef6a2d
parenta69cc29c8376c382afa13e6f3fdf8ead1b8ffcaa (diff)
parent66c5011bbf47c20a9eddaf5c2e8d870b7b9d3e89 (diff)
Merge pull request #4109 from nextcloud/backport/4107/stable5.5stable5.5
[stable5.5] GroupNavigationItem: encode exported contact groups as UTF-8
-rw-r--r--src/components/AppNavigation/GroupNavigationItem.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/AppNavigation/GroupNavigationItem.vue b/src/components/AppNavigation/GroupNavigationItem.vue
index 798eb4bb..87118d09 100644
--- a/src/components/AppNavigation/GroupNavigationItem.vue
+++ b/src/components/AppNavigation/GroupNavigationItem.vue
@@ -150,7 +150,8 @@ export default {
async downloadVcardPromise(vcardPromise) {
vcardPromise.then(response => {
const filename = moment().format('YYYY-MM-DD_HH-mm') + '_' + response.groupName + '.vcf'
- download(response.data, filename, 'text/vcard')
+ const content = 'data:text/plain;charset=utf-8,' + window.encodeURIComponent(response.data)
+ download(content, filename, 'text/vcard')
})
},