Skip to content

Commit

Permalink
Merge pull request #4109 from nextcloud/backport/4107/stable5.5
Browse files Browse the repository at this point in the history
[stable5.5] GroupNavigationItem: encode exported contact groups as UTF-8
  • Loading branch information
st3iny authored Sep 3, 2024
2 parents a69cc29 + 66c5011 commit 80bec77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/AppNavigation/GroupNavigationItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})
},

Expand Down

0 comments on commit 80bec77

Please sign in to comment.