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
918 stars 182 forks source link

Emoji not work with Unicode + SMS in Laravel #153

Closed akasham67 closed 5 years ago

akasham67 commented 5 years ago

Hi,

I got problem to send emoji sms using laravel application. Every message work perfectly. But emoji not work with send message. Here is my code block:

 $message = 'this test message πŸ˜€γ“γ‚“γ«γ‘γ―δΈ–η•Œ';
 $nexmo = new \Nexmo\Client(new Basic('api_key', 'api_secret'));
 $sms_data = [
       'to' => $phone,
       'from' => $sender_id,
       'text' => $message,
       'type' => 'unicode'
     ];
$response = $nexmo->message()->send($sms_data);

Everything work perfectly but emoji receive as ??? (what sign)

PHP Version: 7.2 Laravel Framework: 5.4 Nexmo-php: 1.0.0

mheap commented 5 years ago

Hi @akasham67,

Can you confirm that only the emoji shows as ???, and that all other text (including text after the emoji) is displayed correctly?

akasham67 commented 5 years ago

Hi @mheap , Yes!! Only emoji shows as ???, and rest all was working fine. Thanks!!

mheap commented 5 years ago

Thanks Abul,

This sounds like a carrier issue rather than a code problem. Could you raise a ticket with support@nexmo.com containing the message IDs returned when you send the message?

On 15 Dec 2018, at 05:30, Abul Kashem Shamim notifications@github.com wrote:

Hi @mheap , Yes!! Only emoji shows as ???, and rest all was working fine. Thanks!!

β€” You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

akasham67 commented 5 years ago

Hi @mheap I already created a support ticket on your provided email. Thanks!!