• 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

if i don't use Special characters like (æøå) then no problems
Special characters like (æøå)  is In Danish..

if i try ActiveXperts SMS and MMS Toolkit GSM then æøå is ok ....
i use a siemens m35i modem

if you make a workaround i am ready to bye a lic.

Best regards
Ole  :-\  

Roman Novgorodov

Hello

Hmmm .... it's strange ...
The SmsSend() method supports Unicode chars. Please show me how do you send your special chars.

Also we need to know following:
1) Delphi version
2) Windows version

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

1) Delphi version delphi 2010 enterprise
2) Windows version  windows 7

this problem is in the the gsmdemo from you ..also



Roman Novgorodov

Hello

Please try to send needed sms directly from code. Place new button and call something like this:

procedure TForm1.Button222Click(Sender: TObject);
begin
  nrGSm1.SmsSend(Edit1.Text,'My strange chars here!', chConfirm.Checked);
end;

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

the same problem if i do like this

procedure TForm1.Button222Click(Sender: TObject);
begin
 nrGSm1.SmsSend(Edit1.Text,'My strange chars here æøå!', chConfirm.Checked);
end;

if i skip the characters (æøå) no problem


Roman Novgorodov

Hello

Thank you for your information.

Please set DetailLevel of TnrLogFile component into dlDebug and rebuild GSMDemo.
Try to send message again and send to me log file gsmdemo.log.

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.


henry64

Hi guys

I have exactly the same problem -  :o :o

I have tried upgrading to 9.08 but that doesn't work either!!

The strange thing here is that the message is sent and it is received on the terminal - however the terminal refuses to open the message, it gives an error that the message format isn't supported - but in the message list, it actually shows the first part of the message - so when I just send ÆØÃ... æøå then I can see ÆØÃ...æøå in the list.

D2009 - XP, WIN7 - same same

henry64

I found the "problem" to this issue.

The auto detection of the coding is wrong.

Here's a workaround -

Use SmsSend(aPDU) instead of SmsSend(phone, text, confirm) and set the coding maually like this.


          aPDU := TnrPduSms.Create(False);
          try
            aPDU.Phone := phoneno;
            aPDU.Coding := pc7bit;
            aPDU.Confirm := False;
            aPDU.AutoCutText := True;
            aPDU.DateTime := Now;
            aPDU.Text := msg;
            nrGsm.SmsSend(aPDU);
            nrGsm.SmsSendWait;
            sleep(100);
            aPDU.Free;
          except on e:exception do
             begin
               HandleGSMException('ScanAndSMS GSM ', e.message);
               exit;
             end;
          end;

Romano, please have a look at the autodetect function  ;D

fiskers


Roman Novgorodov

Hello

Please show me hex ASCII code or UNICODE hex code of your chars, we will try to reproduce and fix problem.

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

145 = æ
146 = Æ
155 = ø
157 = Ø
134 = å
143 = Ã...

else try to look here http://asciitable.com/ Extended ASCII Codes
best regards Ole

fiskers

Hallo Roman Novgorodov is there any info from you about this ...
i just paid for a Pro VCL Private License....

Best regards Ole

Roman Novgorodov

Hello

Please try following code for send your message:

var aPDU: TnrPduSms;
begin
  aPDU := TnrPduSms.Create(False);
  aPDU.Coding := pc16bit;
  aPDU.Phone := dstPhone;
  aPDU.Text := myText;
  aPDU.DateTime := Now;
  aPDU.Confirm := false;
  SmsSend(aPDU);
  aPDU.Free;
end;


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.

henry64

Cannot say what works for Ole, but for me (9.08) it looks like this

pc7bit - works
pc8bit - doesn't work
pc16bit - works

In all cases a SMS is sent, but only 7bit and 16bit can be opened at my terminals Nokia E75, E90, E50.