Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/279.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# c语言中的IMAP排序#_C#_Imap - Fatal编程技术网

C# c语言中的IMAP排序#

C# c语言中的IMAP排序#,c#,imap,C#,Imap,如何发送此命令: var command = "SEARCH CHARSET UNICODE BODY {5}"; var command2= "icône"; 使用c连接到imap服务器# 我实际上是想用这样的东西: this._sslStream.Write(System.Text.Encoding.UTF8.GetBytes(stamp + ((stamp.Length > 0) ? " " : "") + command + "\r\n\r\n"), 0, stamp.Leng

如何发送此命令:

var command = "SEARCH CHARSET UNICODE BODY {5}";
var command2= "icône";
使用c连接到imap服务器#

我实际上是想用这样的东西:

 this._sslStream.Write(System.Text.Encoding.UTF8.GetBytes(stamp + ((stamp.Length > 0) ? " " : "") + command + "\r\n\r\n"), 0, stamp.Length + ((stamp.Length > 0) ? 1 : 0) + command.Length + 2);

我被阻止了,没有重音没关系,有重音,我没有得到答案,当编码为UTF-8时,
“icône”
需要6个字节,而不是你在命令中指出的5个字节(
{5}
)。知道吗?在IMAP中,你不仅仅发送UTF-8;您通常使用base64之类的东西。另外,为什么要发送两个换行符对?你有没有给续集发标签?这也是错误的。