Vonage / vonage-php-sdk-core

Vonage REST API client for PHP. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
https://developer.vonage.com/
Apache License 2.0
910 stars 180 forks source link

use Japanese is confused #145

Closed huyufan closed 5 years ago

huyufan commented 5 years ago

$basic = new \Nexmo\Client\Credentials\Basic('.........', '.........'); $client = new \Nexmo\Client($basic); $message = $client->message()->send([ 'to' => '.........', 'from' => 'Nexmo', // 'text'=>$text 'text' => 'アイコン', ]);

hello, How to transcode display normal thank you!

mheap commented 5 years ago

@huyufan You need to set type => unicode to send Japanese text

$message = $client->message()->send([
    'to' => '.........',
    'from' => 'Nexmo',
    'text' => 'アイコン',
    'type' => 'unicode'
]);
lornajane commented 5 years ago

It doesn't look like anything more is needed here, closing.