[Vobject] vobject support vcard 2.1

zodman zodman at gmail.com
Mon Jul 16 22:32:49 CDT 2007


are vcards version 2.1 is supported by vobject ???

i have some problems with charset param

BEGIN:VCARD
VERSION:2.1
REV:20060710T021707Z
UID:004954e000a89aa8-00e0f5ded74f50d2-105
N;X-EPOCCNTMODELLABEL1=Nombre;ENCODING=QUOTED-PRINTABLE;CHARSET=UTF-8:;T=C3=ADa=20selmy;;; 

TEL;CELL:4421554487
END:VCARD


the script break:

Traceback (most recent call last):
File "<stdin>", line 2, in ?
File "/var/lib/python-support/python2.4/vobject/base.py", line 584, in 
prettyPrint
  line.prettyPrint(level + 1, tabwidth)
File "/var/lib/python-support/python2.4/vobject/base.py", line 353, in 
prettyPrint
  print pre, self.name + ":", self.valueRepr()
File "/var/lib/python-support/python2.4/vobject/base.py", line 343, in 
valueRepr
  return ascii( v )
File "/var/lib/python-support/python2.4/vobject/base.py", line 193, in 
ascii
  return unicode(s).encode('ascii', 'replace')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2: 
ordinal not in range(128)



More information about the VObject mailing list