Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Migrating Apple's Address Book data to Linux [SOLVED]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
elvanor
Developer
Developer


Joined: 11 Oct 2004
Posts: 178
Location: France

PostPosted: Tue Dec 05, 2006 2:42 pm    Post subject: Migrating Apple's Address Book data to Linux [SOLVED] Reply with quote

Hi there,

I have under Mac OS X my Address Book full of contacts. I want to export them and reimport them under Linux. Ideally, I'd like to use the Mozilla address book under Gentoo, but KAddressBook is also acceptable.

Apparently, Address Book under OS X, as a typical closed source program, only can export to vcard format. Fine; KAddressBook should be able to import vcf format. Except it does not work. The file, when transferred to Linux, appears to be a binary file, but I don't know what that means.

Let's say the file is named contact.vcf. If I "cat contact.vcf", everything appears ok on the terminal, however, if I type "nano contact.vcf", the text is filled with a ton of garbage characters (which appear like @ on the screen I think). If I open the file with Kate, it just says that the file is not a text file but a binary file.

For me, there is no difference at all between text files and binary files, wtf is that? Maybe Kate cannot display characters in the file because they don't correspond to an ASCII character, but I don't understand how it can classify the file as "binary".

Anyway, any help would be welcome to solve my actual problem and migrate my contacts to Gentoo.

Elvanör


Last edited by elvanor on Tue Dec 05, 2006 8:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
janosh
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jul 2004
Posts: 80
Location: Oslo, Norway

PostPosted: Tue Dec 05, 2006 5:56 pm    Post subject: Reply with quote

Well, if cat works, you could redirect the cat output to aother file:
Code:
cat contact.vcf > newcontact.vcf


Just an idea.. :)
Back to top
View user's profile Send private message
elvanor
Developer
Developer


Joined: 11 Oct 2004
Posts: 178
Location: France

PostPosted: Tue Dec 05, 2006 8:03 pm    Post subject: Reply with quote

No, the cat stuff did not work, but I figured what was wrong using an hex editor.

The file was encoded in UTF-16 by the Mac (even though I said in the Preferences to export as UTF-8...). So, I had to convert it to UTF-8 first in order for KAddressBook to import it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum