<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I am using Vobject to parse and generate vcards. I have the following
issue to regenerate a Vcard with unicode fields:<br>
<br>
First I parse the following vcard with "vcard = vobject.readOne(v)",
this is working well and I can display the name "Frédéric" on my GUI:<br>
<b><tt><big>BEGIN:VCARD<br>
VERSION:3.0<br>
FN:Frederic<br>
<font color="#ff0000">N;ENCODING=QUOTED-PRINTABLE;CHARSET=UTF-8:;Fr=C3=A9d=C3=A9ric;;;</font><br>
TEL:12345678<br>
</big></tt></b><b><tt><big>END:VCARD</big></tt></b><br>
<br>
When I try to re-generate the vcard, this is what I get:<br>
> vcard.serialize()<br>
<big><tt><b>BEGIN:VCARD<br>
VERSION:3.0<br>
FN:Frederic<br>
<font color="#ff0000">N:;Frédéric;;;</font><br>
TEL:12345678<br>
END:VCARD<br>
</b></tt></big><br>
How can I "force" serialize() to use "<small><b>ENCODING=QUOTED-PRINTABLE;CHARSET=UTF-8</b></small>"
for the name ? (Actually I have the problem for Chinese characters but
I use the French accent "é" here as an example, the problem should
remain the same).<br>
<br>
Thank you in advance for your help on this issue and your previous help
as well !<br>
<br>
Best Regards,<br>
<br>
Frédéric. <br>
</body>
</html>