• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 

Special characters ÆØÅ æøå cause the gsmdemo.exe not to send sms

Started by fiskers, August 12, 2010, 01:16:37 pm

Previous topic - Next topic

fiskers


fiskers


Roman Novgorodov

Hello

It seems like 8bit encoding is not supported by some devices.
Please use 16-bit encoding for sent chars with code >= 80h.

Roman Novgorodov
DeepSoftware.Com
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

fiskers


fiskers

will there be a fix for this or not.... so i can use SmsSend again



Ole

fiskers


Roman Novgorodov

Hello

Above you reported that pc7bit and pc16bit work correctly.
Why you don't use these encodings for your chars?

Also if you create Delphi applications on both ends of connect, you can wrap problem chars by StringReplace() function:

// before send message
sTextForSend := StringReplace(sTextFoSend, #145, '$#145$', rfReplaceAll);

// after receive before send message
sTextReceived := StringReplace(sTextReceived, '$#145$', #145, rfReplaceAll);

Roman Novgorodov
DeepSoftware.Com
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

fiskers

If I use StringReplace then I receive an SMS with $#$145
I also had put aPDU.Coding: = pc16bit; and aPDU.Coding: = pc7bit;
but there are som modems can not use pc16bit; pc7bit but if I use pc8bit can still send sms but not if there are special characters ÆØÃ... æøå

fiskers

if i like to use more than 160 characters in a sms howto if i use the
this way
var aPDU: TnrPduSms;
begin 
aPDU := TnrPduSms.Create(False);
aPDU.Coding := pc7bit; 
aPDU.Phone := dstPhone; 
aPDU.Text := myText; 
aPDU.DateTime := Now; 
aPDU.Confirm := false; 
SmsSend(aPDU); 
aPDU.Free;end;

If I use the SmsSend I can send more than 160