C# Imap Sort command with special characters
问题 I'm working on a problem with imap sort extention: My command is the following: var query = "icône"; //byte[] bytes = Encoding.Default.GetBytes(query); //query = Encoding.UTF8.GetString(bytes); var command = "SORT (REVERSE ARRIVAL) UTF-8 " + "{" + query.Length + "}"; var imapAnswerString = client.Command(command); imapAnswerString = client.Command(query); I get the following error: BAD Error in IMAP command SORT: 8bit data in atom I found this: C# Imap search command with special characters