GSM Modem encoding problem

GSM Modem encoding problem SearchSearch
Author Message
LCT
New member
Username: Leon

Post Number: 1
Registered: 11-2006
Posted on Thursday, November 30, 2006 - 08:39 am:   

Hi,

I have setup my GSM Modem and my SMPP client connected to NowSMS. It is not clear why my SMPP client always receive '@' and other chinese characters as a square from the GSM Modem (NowSMS). Is it because it always convert the UTF-8 string to ASCII for GSM Modem to the SMPP client?
Thank you.

SMSDEBUG.LOG:
15:53:41:578 [4] ModemReceiveMessages: Decoding received message index 1 from message storage ME
15:53:41:578 [4] ModemReceiveMessages: 06915669050010040A9156180884610000601103513562230100
15:53:41:578 [4] ModemReceiveMessages: SMSC address len = 6
15:53:41:578 [4] ModemReceiveMessages: SMSC Address = +6596500001
15:53:41:578 [4] ModemReceiveMessages: SMS Message Type = SMS-DELIVER
15:53:41:578 [4] ModemReceiveMessages: Sender address len = 10
15:53:41:578 [4] ModemReceiveMessages: Sender Address = +6581804816
15:53:41:578 [4] ModemReceiveMessages: PID = 00
15:53:41:578 [4] ModemReceiveMessages: DCS = 00
15:53:41:578 [4] ModemReceiveMessages: Anticipated user data length = 1
15:53:41:578 [4] ModemReceiveMessages: Message = @
15:53:41:578 [4] ModemReceiveMessages: AT+CMGD=1

15:53:41:671 [4] ModemReceiveMessages:
OK

Best regards,
Leon
Malcolm - Now Support
New member
Username: Malcolm

Post Number: 18
Registered: 12-2006
Posted on Friday, December 15, 2006 - 08:49 pm:   

Hi Leon,

We assume that SMPP clients will use the GSM character set when connecting to NowSMS to send and receive messages.

In the GSM character set, the "@" character is encoded as a null.

If you want to configure NowSMS to use the (more commonly understood by humans) iso-8859-1 character set, then you can edit SMSGW.INI, and add SMSCCharset=iso-8859-1 under an [SMPP] section header.

This [SMPP] section header is different from any [SMPP - server:port] section headers that might be defined for external SMPP SMSC connections.

Example:

[SMPP]
SMSCCharset=iso-8859-1



--
Malcolm
Now Wireless Support