Author Topic: Special characters ÆØÅ æøå cause the gsmdemo.exe not to send sms  (Read 4203 times)

fiskers

  • Newbie
  • *
  • Posts: 14
    • View Profile
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  :-\  
« Last Edit: August 12, 2010, 07:42:38 pm by fiskers »

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Special characters ÆØÅ æøå cause the gsmdemo.exe not to send sms
« Reply #1 on: August 13, 2010, 08:30:09 am »
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

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Special characters ÆØÅ æøå cause the gsmdemo.exe not to send sms
« Reply #2 on: August 13, 2010, 09:11:20 am »
1) Delphi version delphi 2010 enterprise
2) Windows version  windows 7

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



Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Special characters ÆØÅ æøå cause the gsmdemo.exe not to send sms
« Reply #3 on: August 13, 2010, 10:31:45 am »
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

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Special characters ÆØÅ æøå cause the gsmdemo.exe not to send sms
« Reply #4 on: August 13, 2010, 10:59:44 am »
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

« Last Edit: August 13, 2010, 11:12:31 am by fiskers »

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Special characters ÆØÅ æøå cause the gsmdemo.exe not to send sms
« Reply #5 on: August 13, 2010, 05:43:58 pm »
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.

fiskers

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Special characters ÆØÅ æøå cause the gsmdemo.exe not to send sms
« Reply #6 on: August 13, 2010, 07:08:01 pm »
don log is in the mail
Best regards
Ole

henry64

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
Re: Special characters ÆØÅ æøå cause the gsmdemo.exe not to send sms
« Reply #7 on: August 14, 2010, 11:07:49 am »
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
« Last Edit: August 14, 2010, 11:22:44 am by henry64 »

henry64

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
Re: Special characters ÆØÅ æøå cause the gsmdemo.exe not to send sms
« Reply #8 on: August 14, 2010, 01:40:04 pm »
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

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Special characters ÆØÅ æøå cause the gsmdemo.exe not to send sms
« Reply #9 on: August 15, 2010, 01:38:44 pm »
a you gonna make a fix to this Roman Novgorodov
Best regards
Ole

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Special characters ÆØÅ æøå cause the gsmdemo.exe not to send sms
« Reply #10 on: August 15, 2010, 04:00:26 pm »
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

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Special characters ÆØÅ æøå cause the gsmdemo.exe not to send sms
« Reply #11 on: August 15, 2010, 04:37:06 pm »
145 = æ
146 = Æ
155 = ø
157 = Ø
134 = å
143 = Å
 
else try to look here http://asciitable.com/ Extended ASCII Codes
best regards Ole
« Last Edit: August 15, 2010, 04:42:35 pm by fiskers »

fiskers

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Special characters ÆØÅ æøå cause the gsmdemo.exe not to send sms
« Reply #12 on: August 17, 2010, 02:05:48 pm »
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

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Special characters ÆØÅ æøå cause the gsmdemo.exe not to send sms
« Reply #13 on: August 17, 2010, 04:20:13 pm »
Hello

Please try following code for send your message:

Code: [Select]
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

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
Re: Special characters ÆØÅ æøå cause the gsmdemo.exe not to send sms
« Reply #14 on: August 17, 2010, 08:06:20 pm »
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.