[Vobject] About vobject's usage
    Lars Immisch 
    lars at ibp.de
       
    Wed Aug 16 03:40:27 CDT 2006
    
    
  
Hi,
> 	I'm a pretty new python programmer that is doing his first steps
> with the language. My necessity to read vcards brought me to vobject.
> 
> So far, the only thing I need is, as I said, parse and read vcards. In
> the future I may implement the writing too.
> 
> I'm using a .vcf file a friend of mine sent me. He uses OS X and this is
> the file where his contacts are stored. After doing the OS X ->
> GNU/Linux conversions (basically removing the CTRL-M and CTRL-@ from the
> file) I tried to load it using vobject:
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)
- Lars
    
    
More information about the VObject
mailing list