Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

CP1252 encoded From field

$
0
0
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

Viewing all articles
Browse latest Browse all 1367

Latest Images

Trending Articles



Latest Images