Good day,
We try to make us sms gateway based on microtik. Software now ready but we have a troubles. We cheacked 2 API from WIKI (php, pearl) same result.
If sms have non english symbols the message comes to phone empty. Please cheack and fix a bug. Also if it posible please confirm bug.
There could be so many problems with that…
First and foremost, are you sure the phone support Cyrillic? Like, can you send an SMS from one phone to the targeted testing phone to confirm?
Assuming that’s not the problem (keeping in mind there is a good chance the above is the problem), what kind of charset does the phone expect? If your router can receive messages and the phone can send Cyrillic messages, you should send one to the router (ideally, the message should contain a mix of Latin and Cyrillic) and see how the bytes look like.
Also very important, can you successfully send Cyrillic messages from terminal and successfully view the results on the phone?
Once you know that, the input needs to be converted from whatever your input charset is to that other charset that works.
What charset is your input in anyway? Do you know?
Once you know the right charset pair, using my PHP client, you can establish that after connection. For example, if you’re sure your input is in UTF-8 (including the PHP file being encoded in UTF-8!!!), and the phone expects windows-1251 instead, you can use:
$client = new Client(...);
$client->setCharset(array(
Communicator::CHARSET_LOCAL => 'UTF-8',
Communicator::CHARSET_REMOTE => 'windows-1251'
));
$client->sendSync(new Request('/tool sms send dst="..." message="чао"'));