We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Encoding problem loading Aspose MailMessage from msg/eml stream

Hi,


we are using Aspose.Email (Version 16.12.0) to load Aspose MailMessage objects from msg-/eml-Streams.
Before loading the MailMessage we don’t know the encoding (they are randomly), so default constructor of EmLoadOptions and MsgLoadOptions are used.
The problem is, on loading emails with BodyType = PlainText and BodyEncoding = System.Text.SBCSCodePageEncoding (CodePage = 1252, EncodingName = Western European (Windows)), german umlauts and other special character will not be converted correclty. In the Body property unreadable chars like ü ö or ß are shown.
We can not set a PreferredTextEncoding, because we don’t know the underlaying encoding of the streams.
If the streams are HTML emails, the encoding looks fine.

Is this a bug or is there any way to determine the encoding (ISO, Latin1, UTF8, Unicode) before loading the MailMessage?

Thank you and Greetings,

Johannes


Hi Johannes,


Thank you for writing to Aspose support team.

This issue needs further testing and your sample messages are required which can be used to re-produce the scenario. It will help us to analyze the problem and provide assistance accordingly.

Your cooperation is appreciated in this regard.

Hi Kashif Iqbal,


i attached an example msg-file (it’s inside the zip-file) to the original post.

Greetings,

Johannes

Hi Johannes,


Thank you for providing sample message. This issue is re-produced and logged under Id:EMAILNET-38608 for further investigation by the product team. You will be automatically notified once any update is received in this regard.

The issues you have found earlier (filed as EMAILNET-38608) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.