anlutro / php-bulk-sms

BulkSMS API - PHP implementation
MIT License
36 stars 27 forks source link

set message #8

Closed amrfayad closed 8 years ago

amrfayad commented 8 years ago

How to set message encoding to unicode

anlutro commented 8 years ago

I honestly don't know :(

amrfayad commented 8 years ago

in function sendMessage($recipient, $message, $params) what's the use of $params ?

anlutro commented 8 years ago

Those are simply passed on to the BulkSMS API as POST data.

amrfayad commented 8 years ago

thank you for your interest I found the solution

$text = 'السلام عليكم' ; $encodeMessage = bin2hex(mb_convert_encoding($text, "UTF-16", "UTF-8")) ; $output = $b->sendMessage('+201024847900',$encodeMessage, ['dca'=>'16bit']);