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

Sending Danish letters "Æ, Ø, Å, æ, ø, å" does not work!!

Started by carsten, March 09, 2014, 06:51:30 am

Previous topic - Next topic

carsten

Hi I am trying to send an SMS with the Danish letters ÆØÃ... æøå in it. From debugging I can se that the generated PDU string do not contain any text when i use there letters.
This is the generated PDU string:

0031000A915XXXXXXXX0000AA00 (Mobile number is X'ed out)

void __fastcall TForm1::Button2Click(TObject *Sender)
{
if (nrGsm1->Active)
  {
   Button2->Enabled = false;
   nrGsm1->TimeOut = 1000 * 60;
   TnrPduSms *MySMS = new TnrPduSms(false);

   MySMS->Confirm = true;
   MySMS->DateTime = Now();
   MySMS->Text = EditMessage->Text;
   MySMS->Phone = EditReciever->Text;
   MySMS->Coding = pc7bit;
   String Result = nrGsm1->SmsSendWaitRefID(MySMS);
   Memo1->Lines->Add(Result);
   Button2->Enabled = true;
  }
}

The following is a PDU string from another message containing the text ÆØÃ... æøå:

06915404967912040A9154XXXXXXXX000041309090637240079C8503D4613C00 (Mobile number is X'ed out)

Something stops your code from working with danish letters.

If I set coding to pc16bit I can send ÆØÃ... æøå, but then the message length is no longer 160 signs.

I can send 160 signs in pc7bit containing ÆØÃ... æøå from a normal mobile, so I would think this is also possible from your software.

Hope you can help me

Best regards
Carsten S. Riisbjerg