Hi,
We receive e-mails from customers with a from field encoded like this (see attached file for an example) :
From: =?Cp1252?Q?S=F8borg?= <cp1252@example.org>
When loading these files, we encouter this error (Aspose.Email v3.6) :
Exception: System.ArgumentException: 'Cp1252' is not a supported encoding name.
Parameter name: name
at System.Globalization.EncodingTable.internalGetCodePageFromName(String name)
at System.Globalization.EncodingTable.GetCodePageFromName(String name)
at . . (String )
at Aspose.Email.Mail.MailAddress..ctor(String , String , UInt32 )
at . . ( , Encoding )
at Aspose.Email.Mime.HeaderCollection.Add( , Encoding )
at . . ()
at . . (Byte[] )
at . . ()
at Aspose.Email.Mail.MailMessage.Load(Stream stream, MessageFormat format)
at Aspose.Email.Mail.MailMessage.Load(Stream stream)
at Aspose.Email.Mail.MailMessage.Load(String fileName)
We understand that CP1252 is not a strictly valid encoding name, but it should not cause an exception at loading, and at worst, only the encoded field should be impacted.
Regards,
AVM Informatique