[Vobject] unicode in vcards
Anil
replicase at gmail.com
Wed Dec 12 19:19:29 CST 2007
I am trying to save a vCard to a file but I am getting UnicodeEncodeError.
serialize = j.serialize()
f.write(serialize)
This last line throws this exception:
<type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode
characters in position 29-31: ordinal not in range(128)
I think j.serialize() returns the data in unicode, but how come this
exception is being thrown when saving to that file?
Thanks,
Anil
More information about the VObject
mailing list