[Vobject] unicode problem

Anil replicase at gmail.com
Tue May 27 12:18:08 CDT 2008


BEGIN:VCARD
VERSION:2.1
N;CHARSET=UTF-8:M.Sc.;Beno\303\256t Lef\303\251vre,
FN;QUOTED-PRINTABLE:Beno=EEt Lef=E9vre, M.Sc.
EMAIL;PREF;INTERNET:someone at something.com
END:VCARD


Since the data is in utf-8, I wanted to decode to Unicode so I do:
name = vcard.fn.value.encode('utf-8')

but that is throwing
<type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode
byte 0xee in position 4: ordinal not in range(128)


I am still new to Unicoding, so I might've missed something obvious. Thanks!


More information about the VObject mailing list