Skip to content

Commit

Permalink
fix(GroupNavigationItem): encode exported contact groups as UTF-8
Browse files Browse the repository at this point in the history
Signed-off-by: Grigory Vodyanov <scratchx@gmx.com>
  • Loading branch information
GVodyanov committed Sep 2, 2024
1 parent bf30887 commit 7e54582
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 @@ -227,7 +227,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 7e54582

Please sign in to comment.