【发布时间】:2023-04-02 19:13:01
【问题描述】:
我正在使用 SMPP Receiver API 从特定的 MSISDN 获取消息。我得到正确的英文文本。但达里语和普什图语文本的格式不同。它显示如下输出:
/
'2(�
/'HFD/1
我的代码是:
ob_start();
require_once "smpp.php";//SMPP protocol
//connect to the smpp server
$tx=new SMPP('IP',PORT);
//bind the receiver
$tx->system_type="NUll";
$tx->addr_npi=0;
$tx->bindReceiver("username","password");
do
{
//read incoming sms
if($sms=$tx->readSMS())
{
print_r($sms);
}
}while($sms);
而 smpp.php 位于:
http://121.100.50.58/apps/smpp/
如何获得正确的达里语和普什图语消息文本?
【问题讨论】:
标签: php unicode sms sms-gateway smpp