UTF8ToLocalString: Error 87 | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through June 02, 2006 ⬆ |
◄ ► |
Author | Message | |||
Kashif sohail New member Username: Kashifsohail Post Number: 10 Registered: 03-2006 |
hi, below is the part of my log file , can u let me know what is this error 87, i am testing your latest version with sony ericcson gc79 gprs/wireless lan card. log is --------------------------- 12:29:18:866 [3] ThreadProcessInboundSMS: Processing 4445E6B3.in... 12:29:18:866 [3] GetProgramToExecute: c:\windows\system32\cmd.exe /c echo Echo @@FULLSMS@@ 12:29:18:886 [3] GetProgramToExecute: Converting character set for received SMS message to utf-8 12:29:18:886 [3] smsData Before: Receive ok 12:29:18:886 [3] UTF8ToLocalString: Error 87 from WideCharToMultiByte 12:29:18:886 [3] UTF8ToLocalString: Error 87 from WideCharToMultiByte 12:29:18:886 [3] smsData After: Receive ok 12:29:18:886 [3] GetProgramToExecute: c:\windows\system32\cmd.exe /c echo Echo Receive ok 12:29:18:886 [3] ThreadProcessInboundSMS: Executing c:\windows\system32\cmd.exe /c echo Echo Receive ok 12:29:19:166 [3] ThreadProcessInboundSMS: Echo Receive ok 12:29:19:407 [2] ModemReceiveMessages: OK 12:29:19:477 [2] ThreadProcessModem: Processing 4445E6B5.req... 12:29:19:477 [2] ThreadProcessModem: OUT: AT+CMGS=28 12:29:19:547 [2] ThreadProcessModem: IN: > 12:29:19:547 [2] ThreadProcessModem: OUT: 0001040C91290360868099000011C531FA0D9296C7E5B4BD0C7AAF1B0A 12:29:22:611 [2] ThreadProcessModem: +CMGS: 197 OK | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 5805 Registered: 10-2002 |
Do you have a ReceiveSMSCharset= setting in SMSGW.INI? What is that value? Also, what version of Windows? I suspect that the error is somehow related to Windows not liking the value of this parameter. -bn | |||
William Chan New member Username: Weilim88 Post Number: 1 Registered: 05-2006 |
Hi Bruce I am having the same problem. I am using a Nokia 3220 GSM modem and the latest NowSMS software. I am using Windows XP Professional Ver 2002 SP2. This is the smsdebug log 16:15:42:599 [6] ThreadProcessConnection: Processing request /Send%20Text%20Message.htm?PhoneNumber=7788582778&Text=hjh&InfoCharCounter=&PID= &DCS=&Submit=Submit 16:15:42:599 [6] Debug: 1 recipient entries 16:15:42:599 [6] Debug: 7788582778 16:15:42:599 [6] ThreadProcessConnection: Request processing complete 16:15:48:207 [2] ThreadProcessModem: Processing 445938FF.req... 16:15:48:207 [2] ThreadProcessModem: OUT: AT+CMGS="7788582778" 16:15:48:717 [2] ThreadProcessModem: IN: > 16:15:48:717 [2] ThreadProcessModem: OUT: hjh 16:15:55:427 [2] ThreadProcessModem: +CMGS: 108 OK 16:16:02:728 [2] ModemReceiveMessages: +CMGL: 8,"REC UNREAD","+17788582778",,"06/05/03,16:16:46+00" hjh OK 16:16:02:728 [2] ModemReceiveMessages: Decoding received message index 8 from message storage SM 16:16:02:728 [2] ModemReceiveMessages: Message = hjh 16:16:02:728 [2] ModemReceiveMessages: AT+CMGD=8 16:16:03:258 [2] ModemReceiveMessages: OK 16:16:03:378 [3] ThreadProcessInboundSMS: Processing 44593900.in... 16:16:03:378 [3] GetProgramToExecute: c:\windows\system32\cmd.exe /c echo Echo @@FULLSMS@@ 16:16:03:378 [3] GetProgramToExecute: Converting character set for received SMS message to utf-8 16:16:03:378 [3] smsData Before: hjh 16:16:03:378 [3] UTF8ToLocalString: Error 87 from WideCharToMultiByte 16:16:03:378 [3] UTF8ToLocalString: Error 87 from WideCharToMultiByte 16:16:03:378 [3] smsData After: hjh 16:16:03:378 [3] GetProgramToExecute: c:\windows\system32\cmd.exe /c echo Echo hjh 16:16:03:378 [3] ThreadProcessInboundSMS: Executing c:\windows\system32\cmd.exe /c echo Echo hjh 16:16:03:419 [3] ThreadProcessInboundSMS: Echo hjh 16:16:10:969 [2] ThreadProcessModem: Processing 44593902.req... 16:16:10:969 [2] ThreadProcessModem: OUT: AT+CMGS="+17788582778" 16:16:11:270 [2] ThreadProcessModem: IN: > 16:16:11:270 [2] ThreadProcessModem: OUT: Echo hjh William Chan | |||
William Chan New member Username: Weilim88 Post Number: 2 Registered: 05-2006 |
Dear Bruce This is my smsgw file [SMSGW] WebAuth=No WebMenu=Yes WebPort=8800 IPAddress=192.168.1.100 Modem1=Nokia 3220 Cable Debug=Yes ReceiveSMS=Yes ReceiveMMS=No ReceiveSMSCharset=utf-8 ReceiveSMSCommand1=* c:\windows\system32\cmd.exe /c echo Echo @@FULLSMS@@ Yes [Modem - Nokia 3220 Cable] ModemTextMode=Yes ReceiveSMS=Yes ReceiveMMS=No SMSAccess=GPRS William | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 5881 Registered: 10-2002 |
Hi William, What if you remove the "ReceiveSMSCharset=utf-8" line from the SMSGW.INI file? Does the error go away? (We have built-in conversion to UTF-8, which is the default value for this setting ... I'm thinking that for some reason when UTF-8 is explicitly selected, we're having a problem in some versions of Windows.) -bn | |||
William Chan New member Username: Weilim88 Post Number: 3 Registered: 05-2006 |
Dear Bruce, I removed it. The error is still there. It is strange because the php file still executes OK even with the error. William | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 5891 Registered: 10-2002 |
William, Do you still see "GetProgramToExecute: Converting character set for received SMS message to utf-8" ... before you see the "Error 87". If so, then it sounds like the "ReceiveSMSCharset=utf-8" line got added back to SMSGW.INI. I don't think this "Error 87" is actually a technical problem. Everything should be working ok. The error is that the text is already in UTF-8 format, and we are asking a Windows API call to convert it to UTF-8. So Windows doesn't perform any conversion because it is not necessary, and the debug log records the error. But it shouldn't be an actual problem because no conversion is actually needed. -bn | |||
William Chan New member Username: Weilim88 Post Number: 4 Registered: 05-2006 |
Bruce I see the "GetProgramToExecute:..." before I see the "Error 87". | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 5903 Registered: 10-2002 |
William, Ok. Thanks for the feedback. I don't think it's a problem. Everything should work as intended. We're going to put in a check to avoid the unnecessary conversion attempt in a future update, so that there won't be an error in the debug log. -bn |