I've been using vobject for a few months and have just run into an issue.<br><br>I exported a contact from Google Gmail, and CRLF was represented as "=0D=OA=".<br><br>Neither vobject-0.6.6 nor vobject-0.7.1 handled it.<br>
<br>>>> import vobject<br>>>> data = """BEGIN:VCARD<br>... VERSION:3.0<br>... FN:John Smith<br>... LABEL;TYPE=HOME;ENCODING=QUOTED-PRINTABLE:34 Main St=0D=0A=<br>... Apt 8H=0D=0A=<br>... Edison, NJ 08837<br>
... END:VCARD"""<br>>>> v = vobject.readOne( data )<br>Traceback (most recent call last):<br> File "<stdin>", line 1, in <module><br> File "/var/lib/python-support/python2.5/vobject/base.py", line 1011, in readOne<br>
ignoreUnreadable).next()<br> File "/var/lib/python-support/python2.5/vobject/base.py", line 968, in readComponents<br> vline = textLineToContentLine(line, n)<br> File "/var/lib/python-support/python2.5/vobject/base.py", line 845, in textLineToContentLine<br>
return ContentLine(*parseLine(text, n), **{'encoded':True, 'lineNumber' : n})<br> File "/var/lib/python-support/python2.5/vobject/base.py", line 714, in parseLine<br> raise ParseError("Failed to parse line: %s" % line, lineNumber)<br>
vobject.base.ParseError: At line 5: Failed to parse line: Apt 8H=0D=0A=<br><br>It seems that at least one other project has the same issue: vpim for ruby (<a href="http://ep.blogware.com/blog/_archives/2008/5/14/3690826.html" target="_blank">http://ep.blogware.com/blog/_archives/2008/5/14/3690826.html</a>).<br>
<br>Thanks,<br>Jon<br>