Hi,
I try to convert Thunderbirds Mail into Eml format and i have some trouble with the “subject” field.
When i read the subject in the MailMessage object all is perfect :
Subject: [cgm-insb] Cafetière(Aspose.Email Evaluation)
But when i save the eml conversion of this mail the subject become unreadable :
Subject:
=?utf-32?Q?[=00=00=00c=00=00=00g=00=00=00m=00=00=00-=00=00=00i=00=00=00n?=
=?utf-32?Q?=00=00=00s=00=00=00b=00=00=00]=00=00=00_=00=00=00C=00=00=00a=00=00=00f=00=00=00e=00=00=00t=00=00=00i=00=00=00=E8=00=00=00r=00=00=00e=00=00=00(=00=00=00A=00=00=00s=00=00=00p=00=00=00o=00=00=00s=00=00=00e=00=00=00=2E=00=00=00E=00=00=00m=00=00=00a=00=00=00i=00=00=00l=00=00=00_=00=00=00E=00=00=00v=00=00=00a=00=00=00l=00=00=00u=00=00=00a=00=00=00t=00=00=00i=00=00=00o=00=00=00n=00=00=00)=00=00=00?=
I save the eml with this line :
message.Save(“C:/test/”+nbMail+".eml", MailMessageSaveType.EmlFormat);
Is there any solution or workaround for this problem?
Thanks for your help!
Ok i have resolve my problem, there is a specific encoding parameter for the subject.
message.SubjectEncoding = new UTF8Encoding();
And all goes fine!
Hi Nicolas,
It’s good to know that your issue is resolved now. If you have any additional query/inquiry, please feel free to contact us. We will be glad to help you.