I’ve been using Aspose.Email for creating Appointment in PST(Microsoft Outlook) file.
Subject has non-english character are not coming properly .
please refer the following code :
// MapiProperty Subject = new MapiProperty(MapiPropertyTag.PR_SUBJECT, en.GetBytes(“在我睡觉之前，在我睡觉之前和里程前 chinese subject and body”));
Appointment f_objAppointment = new Appointment("", “在我睡觉之前，在我睡觉之前和里程前 chinese subject and body”, “”, DateTime.Now,
MailMessage f_objMsg = new MailMessage();
// f_objMsg.SubjectEncoding = UnicodeEncoding.Unicode;
// f_objMsg.PreferredTextEncoding = UnicodeEncoding.Unicode;
f_objMsg.Subject = “在我睡觉之前，在我睡觉之前和里程前 chinese subject and body”;
//Till here subject is coming fine, but as soon as when we convert MailMessage to Mapi Message the subject gets changed in ???
MapiMessage f_objMapiMsg = MapiMessage.FromMailMessage(f_objMsg);
f_objMapiMsg.Subject = “在我睡觉之前，在我睡觉之前和里程前 chinese subject and body”;
MapiCalendar f_MapiCalendarObj = (MapiCalendar)f_objMapiMsg.ToMapiMessageItem();
i tried every thing even setting subject encoding too,still no result, I’ve been using Aspose.Email 6.4
and also testing on your latest version too.
I cannot upgrade the version from 6.4 to 17.5, hope you can understand is there any work-around you might suggest in 6.4 so that the issue can be solved.
I’ve also attached the code.
Looking for positive response.