Arabic over SMPP | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through June 02, 2006 ⬆ |
◄ ► |
Author | Message | |||
Ziad New member Username: Ziad Post Number: 3 Registered: 03-2006 |
Hello, my setup is having an smpp php script to extract an arabic string from a database and send it to nowsms smsc. it always get processed as ??? not as an arabic string. how do i send an arabic string through SMPP? | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 5698 Registered: 10-2002 |
Hi Ziad, If you are submitting via SMPP, then the Arabic text must be converted to Unicode and submitted with data_coding = 8 to indicate Unicode encoding. If you submit via HTTP, then you can leave the text in Arabic, but include a character set indicator in the URL when submitting the message to NowSMS. For Arabic, this is done by appending "&charset=iso-8859-6" to the URL. For example: http://127.0.0.1:8800/?PhoneNumber=xxxxxx&Text=xxxxxxxxxxxx&charset=iso-8859-6 -bn | |||
Ziad New member Username: Ziad Post Number: 4 Registered: 03-2006 |
Hello Bryce, I tried "http://127.0.0.1:8800/?PhoneNumber=1234&Text=ط´ط³ظٹ&charset=iso-8859-6" smsdebug.log showed %3f%3f%3f as the message submitted eventhough the machine supports arabic. how can i fix this? thanks | |||
MedSalimALI New member Username: Salim Post Number: 41 Registered: 04-2005 |
Hello Ziad, Bryce will give you more details, but let me give you some experienced similar cases which we got solutions as below: 1. "http://127.0.0.1:8800/?PhoneNumber=1234&Text=ط´ط³ظٹ&charset=iso-8859-6, that fine as said Bryce 2. we also edited the SMSGW.INI file and Under the [SMSGW] you add ReceiveSMSCharset=iso-8859-6 which it allows you even to receive arabic text with NowSMS gateway Anyway it just one push, Bryce will give details, because as I see your"%3f%3f%3f" which we got same and after editing the INI file and save the change, we got solution, and we are sending and receiving correctly arabic text. Regards, Salim. | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 5711 Registered: 10-2002 |
Hi Ziad, I think I'm going to need to see your SMSDEBUG.LOG. If you see %3F%3F%3F in the SMSDEBUG.LOG, then this most likely means that these are the characters that your PHP script is sending to NowSMS. I'd like to see the SMSDEBUG.LOG to confirm this. However, it sounds like the characters might have already been converted to "?" by the time they reach NowSMS. In that case, you would need to look closer at your script and how it is processing the text. -bn |