Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.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# Amazon SES不允许在from字段中使用变音字符_C#_Amazon Web Services_Amazon Ses - Fatal编程技术网

C# Amazon SES不允许在from字段中使用变音字符

C# Amazon SES不允许在from字段中使用变音字符,c#,amazon-web-services,amazon-ses,C#,Amazon Web Services,Amazon Ses,使用以下SendEmailRequest,其中包含带变音符号的字符 var sendRequest = new SendEmailRequest { Source = "Kůň <kun@test.com>", Destination = destination, Message = new Message { Subject = new Content(message.Subject), Body = mailBo

使用以下SendEmailRequest,其中包含带变音符号的字符

var sendRequest = new SendEmailRequest
{
    Source = "Kůň <kun@test.com>",  
    Destination = destination,
    Message = new Message
    {
        Subject = new Content(message.Subject),
        Body = mailBody
    }
};
…通过Amazon SES发送会导致发件人在电子邮件客户端中错误地显示为KoH而不是Kůň


有没有快速解决办法?我如何告诉SES客户端将源代码视为UTF-8?主题没有此类问题。

必须声明源代码编码。 有关unicode的更多详细信息,请访问链接: