{"'Cp1252' is not a supported encoding name.\r\nParameter name: name"}

Jul 14, 2011 at 4:44 PM

Hello, how are you?

     When I try to access a specific email in my mailbox, the following error occurs: {"'Cp1252' is not a supported encoding name. \ R \ nParameter name: name"} in the message subject field.
      What might be happening?

Thanks,
Alex

 

Coordinator
Jul 19, 2011 at 12:45 AM

Maybe it is bug.
Please send me your mail data to reproduct the bug.
I'll fix it.

Oct 5, 2011 at 9:42 PM

Higty,

 

   Sorry for the delay, the stack trace to this error is?

at System.Globalization.EncodingTable.internalGetCodePageFromName(String name)\r\n  
at System.Globalization.EncodingTable.GetCodePageFromName(String name)\r\n  
at System.Text.Encoding.GetEncoding(String name)\r\n  
at Higuchi.Net.Mail.MailParser.GetEncoding(String encoding) in C:\\DESENVOLVIMENTO\\EmailNFe\\Mail\\Common\\MailParser.cs:line 899\r\n  
at Higuchi.Net.Mail.MailParser.DecodeFromMailHeaderLine(String line) in C:\\DESENVOLVIMENTO\\EmailNFe\\Mail\\Common\\MailParser.cs:line 400\r\n  
at Higuchi.Net.InternetTextMessage.get_Item(String key) in C:\\DESENVOLVIMENTO\\EmailNFe\\Mail\\Common\\InternetTextMessage.cs:line 54\r\n  
at Higuchi.Net.InternetTextMessage.get_Subject() in C:\\DESENVOLVIMENTO\\EmailNFe\\Mail\\Common\\InternetTextMessage.cs:line 110

the subject value is follow: "=?Cp1252?Q?Nota_Fiscal_Eletr=F4nica_Fabesul?="

the message is: 'Cp1252' is not a supported encoding name.
Parameter name: name - mscorlib - Int32 internalGetCodePageFromName(System.String) - nfe@fabesul.com.br

Para obter mais informações, visite o Centro de ajuda e suporte em http://go.microsoft.com/fwlink/events.asp.

Thanks! Congrats to nice job!!!

Coordinator
Oct 15, 2011 at 9:39 PM

OK.
I realize your bug.
I'll fix next week.

And C#Mail moved to
http://higlabo.codeplex.com
Please chek it out!!