Personagens especiais na Amazon SES

Estou usando AWS SDK para PHP ( https://github.com/aws/aws-sdk-php ) para enviar e-mails usando o Amazon SES. Aqui está o código:

 'XXXXXXXXXXXXXXXX', 'secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXX', 'region' => 'eu-west-1' )); $result = $client->sendEmail(array( // Source is required 'Source' => 'Télécom Co ', // Destination is required 'Destination' => array( 'ToAddresses' => array('Grégory Smith ') ), // Message is required 'Message' => array( // Subject is required 'Subject' => array( // Data is required 'Data' => 'The subject', 'Charset' => 'utf-8', ), // Body is required 'Body' => array( 'Text' => array( // Data is required 'Data' => 'The message', 'Charset' => 'utf-8', ) ), ) )); ?> 

O problema é que nos clientes de e-mail “Télécom” aparece como “T�l�com” e “Grégory” como “Gr�gory”.

Existem soluções para esse problema?

Aqui está a solução:

 < ?php require 'vendor/autoload.php'; use Aws\Ses\SesClient; $client = SesClient::factory(array( 'key' => 'XXXXXXXXXXXXXXXX', 'secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXX', 'region' => 'eu-west-1' )); $from_name = base64_encode("Télécom Co"); $from = "=?utf-8?B?$from_name?= "; $to_name = base64_encode('Grégory Smith'); $to = array("=?utf-8?B?$to_name?= "); $result = $client->sendEmail(array( // Source is required 'Source' => $from, // Destination is required 'Destination' => array( 'ToAddresses' => $to ), // Message is required 'Message' => array( // Subject is required 'Subject' => array( // Data is required 'Data' => 'The subject', 'Charset' => 'utf-8', ), // Body is required 'Body' => array( 'Text' => array( // Data is required 'Data' => 'The message', 'Charset' => 'utf-8', ) ), ) )); ?>