[Vobject] About vobject's usage

Jeffrey Harris jeffrey at osafoundation.org
Wed Aug 16 10:31:31 CDT 2006


Hi Lars,

> Umm, the file isn't UTF-16 by any chance? That is what Address Book will 
> export into.
> 
> I use something like:
> 
>     f = codecs.open('contacts.vcf', 'r', encoding='UTF-16')
> 
>     vcards = readComponents(f)

Oops, good catch, that's probably part of what's going on.

In vobject 0.4.1 I changed the unicode encoding detection to check 
utf-16 as well as utf-8, so this should no longer be necessary, but if 
Pablo's using an older version that could explain the problem.

Sincerely,
Jeffrey


More information about the VObject mailing list