Arabic letters are not readable on handset

Arabic letters are not readable on handset SearchSearch
Author Message
Hala
New member
Username: Haref

Post Number: 23
Registered: 12-2015
Posted on Wednesday, March 29, 2017 - 10:41 am:   

Hello,

I have application generating req files to be added manually in the Q folder,but now we need to send messages with arabic letters, when i tried the current one we recive it with ????? characters.

When I try to send arabic messages through web interface , it sent successfully.
When I checked the content of both req files, I found the following:

Req file generated from Web interface:
Data field is encrypted like this : 06349375367A063747634646A06298776856A
dcs=08
Binary=1

While the req file manually generated:
Data=عزيزى العميل، مرحبا بك
dcs=00
Binary=0

then I changed manaully dcs=08, Binary=1, but still message is not received on handset correctly.

kindly assist.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5811
Registered: 08-2008
Posted on Wednesday, March 29, 2017 - 02:28 pm:   

Hi,

In the REQ files, NowSMS expects Unicode messages to be encoded as a hex string, where each 4 characters represents the UCS-32 character code.

The alternative is submitting via HTTP. Some example scripts are here:
https://www.nowsms.com/faq/api

--
Des
NowSMS Support
Hala
New member
Username: Haref

Post Number: 24
Registered: 12-2015
Posted on Wednesday, March 29, 2017 - 02:35 pm:   

Hi,

Thank you. is this method help in importing xml file?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5813
Registered: 08-2008
Posted on Thursday, March 30, 2017 - 11:18 pm:   

No
Ahmed Negm
New member
Username: Anegm

Post Number: 9
Registered: 04-2014
Posted on Thursday, May 04, 2017 - 01:27 pm:   

If you have an application which is responsible for sending/pushing MT messages, I think better to use the HTTP API of NowSMS for both Arabic and English messages like the below examples:

For Arabic: http://127.0.0.1:8800/?user=ahmed&password=negm&PhoneNumber=20100xxxxx&Sender=Se nderID&SMSCRoute=SMPPAccountAlies&Data=06450631062d06280627&DCS=8&Binary=1

For English: http://127.0.0.1:8800/?user=ahmed&password=negm&PhoneNumber=20100xxxxx&Sender=Se nderID&SMSCRoute=SMPPAccountAlies&Text=Hello

Notes:
Consider the following parameters:
* user = username of web API of NowSMS
* password = password of web API of NowSMS
* PhoneNumber = the phone number which you want to push the message to
* Sender = the sender name which will appear on the handset
* SMSCRoute = the alphanumerical ID of your SMPP connection in NowSMS, you can ignore it if you have only one connection, and you should use it if you have more than once and you need to push the message through one of your configured connections
* Data = it is for Unicoded messages using Hexadecimal format (non-English)
* Text = use it for English text
* Keep DCS=8&Binary=1 for Arabic and ignore it completely for English
* Consider the port number which you can specify it through Web tab in NowSMS
Ahmed Negm
New member
Username: Anegm

Post Number: 11
Registered: 04-2014
Posted on Thursday, May 04, 2017 - 02:16 pm:   

BTW, the above mentioned HTTP hit/call will ask NowSMS to create the REQ file, then and if your connections are up, the message will go ...
Hala
New member
Username: Haref

Post Number: 25
Registered: 12-2015
Posted on Thursday, May 04, 2017 - 02:31 pm:   

Dear All,

Thank you , I have created a script that gets the required data from an xml file (includes the phone number and the sms text in arabic letters) then call the sms.js associated with it the required data for the SMS (username, password, Sender, Phonenumber, and the SMS text) , so now I can send arabic SMS.