I created the SES template and rendered it from the aws-cli, as you can see the non-English texts are replaced by '?', both in plain text version and HTML version. How to fix this? P.S: I also checked it by sending an email.
the following is my TestMainTemplate.json file
{
"Template": {
"TemplateName": "TestTemplate01",
"SubjectPart": "こんにちは {{name}}!",
"HtmlPart": "<h1>こんにちは {{name}}さん</h1><p>あなたの好きなAWSサービスは{{favoriteservice}}ですね。</p>",
"TextPart": "前略 {{name}}さん\r\nあなたの好きなAWSサービスは{{favoriteservice}}ですね。\r\n草々"
}
}
comamnd to upload template to aws SES from cli :
aws ses create-template --cli-input-json file://TestMainTemplate.json --region us-east-1
command to render the template:
aws ses test-render-template --template-name TestTemplate01 --template-data '{ "name": "大栗" , "favoriteservice": "SES" }' --region us-east-1
output:
Date: 2018-09-14T03:27:46.913Z
Message-ID: <5990...........ec2-user@ip-......ec2.internal>
Subject: ????? ??!
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_Part_106793_202759574.1536895666913"
Content-Transfer-Encoding: quoted-printable
------=_Part_106793_202759574.1536895666913
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
?? ????
???????AWS?????SES????
??
------=_Part_106793_202759574.1536895666913
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
<h1>????? ????</h1><p>???????AWS?????SES????</p>
------=_Part_106793_202759574.1536895666913--