Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'cp-850' is not a supported encoding name #740

Closed
juansh20 opened this issue Aug 1, 2018 · 4 comments
Closed

'cp-850' is not a supported encoding name #740

juansh20 opened this issue Aug 1, 2018 · 4 comments
Labels
bug Something isn't working

Comments

@juansh20
Copy link

juansh20 commented Aug 1, 2018

Hello:

I use MessageSummaryItems.PreviewText, in some messages. I have this error:

"'cp-850' is not a supported encoding name. For information about defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.
Parameter name: name"

code:

items = FolderImap.Fetch(UniqueIdgroup, MessageSummaryItems.Envelope | MessageSummaryItems.Flags | MessageSummaryItems.UniqueId | MessageSummaryItems.BodyStructure | MessageSummaryItems.PreviewText);

error:

en System.Globalization.EncodingTable.internalGetCodePageFromName(String name)
en System.Globalization.EncodingTable.GetCodePageFromName(String name)
en System.Text.Encoding.GetEncoding(String name)
en MailKit.Net.Imap.ImapFolder.GetPreviewText(MemoryStream memory, String charset)
en MailKit.Net.Imap.ImapFolder.FetchPreviewTextContext.Add(Section section)
en MailKit.Net.Imap.ImapFolder.d__214.MoveNext()
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
en MailKit.Net.Imap.ImapEngine.d__167.MoveNext()
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
en MailKit.Net.Imap.ImapCommand.d__68.MoveNext()
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
en MailKit.Net.Imap.ImapEngine.d__168.MoveNext()
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
en MailKit.Net.Imap.ImapEngine.d__169.MoveNext()
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
en MailKit.Net.Imap.ImapFolder.d__156.MoveNext()
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
en MailKit.Net.Imap.ImapFolder.d__157.MoveNext()
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
en MailKit.Net.Imap.ImapFolder.Fetch(IList1 uids, MessageSummaryItems items, CancellationToken cancellationToken) en mail.LoadMessages(IMailFolder FolderImap, Int32 itipomensaje, IList1 UniqueIdgroup, String& strMensajesFound) en F:\CMail.cs:línea 3742

@jstedfast
Copy link
Owner

If you can tell me what type of exception it is, this is a really trivial fix.

i.e. is it an ArgumentException? Or something else?

@juansh20
Copy link
Author

juansh20 commented Aug 1, 2018

It´s ArgumentException.

exception

@juansh20
Copy link
Author

juansh20 commented Aug 1, 2018 via email

@jstedfast jstedfast added the bug Something isn't working label Aug 1, 2018
@jstedfast
Copy link
Owner

Thanks. I've committed a fix and will be making a new release this weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants