Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Charset/decoding problems with export from macOS AddressBook #17

Open
bmix opened this issue Sep 13, 2021 · 2 comments
Open

Charset/decoding problems with export from macOS AddressBook #17

bmix opened this issue Sep 13, 2021 · 2 comments

Comments

@bmix
Copy link

bmix commented Sep 13, 2021

Hello,

thanks for sharing this program, very helpful!

Exporting an Address-Book from macOS I get garbled character data, whenever the VCARD is constructed like this:

BEGIN:VCARD
VERSION:2.1
PRODID:-//Apple Inc.//Mac OS X 10.11.6//EN
N;CHARSET=MACINTOSH:- K�chle;Erika;;;
FN;CHARSET=MACINTOSH:Erika K�chle
TEL;WORK;VOICE;pref:00000 - 00 0 00
ADR;WORK;pref:;;Muster Str. 00\n00000 Musterstadt;;;;
UID:00000000-0000-0000-0000-000000000000
X-ABUID:00000000-0000-0000-0000-000000000000:ABPerson
END:VCARD

I don't know the interna of the VCARD format, but it seems, that Apple has added an extension, reporting the charset encoding, which could be used to map the input to the right chars.

For now I could easily work around this in Bash with:

iconv -f MACROMAN -t utf-8 < export.vcf > export-utf8.vcf
@tryallthethings
Copy link
Collaborator

Hello!

The example above is what you receive as an exported .vcf file out of the macOS address book, correct?
Could you please send me a dummy .vcf file with this issue? Preferably in a .zip file so nothing gets modified during the upload. I don't have access to a macOS machine.

And could you please check the address book settings? As per this macOS help article, the default export format is vCard 3.0. But your example is 2.1. https://support.apple.com/guide/contacts/contacts-vcard-preferences-adrbk1512/mac

@bmix
Copy link
Author

bmix commented Nov 8, 2021

Sorry for coming back to this so late, it slipped my radar. Since I do not have a macOS machine either (but family member has), I will need to wait, at least, till next weekend (that is 14.Nov2021) till I can fulfill your request. I will come back, then.

As to your question: yes, it is an export from macOS address book.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants