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 authored and backportbot[bot] committed Sep 2, 2024
1 parent 9a387b2 commit 66c5011
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 66c5011

Please sign in to comment.