×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    sms not support any language instead english......

    Hi ALL,

    I made an application that send sms after scheduling, if message is in English then no problem, but if i write message in any language like Chines, Hindi, the character chages in ???? like question marks, please any body tell me how can i do it universal.
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: sms not support any language instead english......

    Quote Originally Posted by aamitgupta View Post
    Hi ALL,

    I made an application that send sms after scheduling, if message is in English then no problem, but if i write message in any language like Chines, Hindi, the character chages in ???? like question marks, please any body tell me how can i do it universal.
    can you show us your sms sending code.

  3. #3
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: sms not support any language instead english......

    Quote Originally Posted by skumar_rao View Post
    can you show us your sms sending code.
    Yes Kumar, please see my code.
    Code:
    void CSendSms::SendSocketSms(TPtrC msgbody,TPtrC phnumber)
    {
     RSocketServ sockServ;
     RSocket socket;
     User::LeaveIfError(sockServ.Connect());
     CleanupClosePushL(sockServ);
     User::LeaveIfError(socket.Open(sockServ, KSMSAddrFamily,      KSockDatagram,   KSMSDatagramProtocol));
     CleanupClosePushL(socket);
     TSmsAddr smsaddr;
     smsaddr.SetSmsAddrFamily(ESmsAddrSendOnly);
     User::LeaveIfError(socket.Bind(smsaddr));
     RFs fileSession;
     User::LeaveIfError(fileSession.Connect());
     CleanupClosePushL(fileSession);
     CSmsBufferBase *buffer = CSmsBuffer::NewL();
     CleanupStack::PushL(buffer);
     buffer->InsertL(0, msgbody);
     CSmsMessage *cSmsMessage = CSmsMessage::NewL(fileSession,      CSmsPDU::ESmsSubmit, buffer);
     CleanupStack::Pop(buffer);//cSmsMessage takes ownership
     CleanupStack::PushL(cSmsMessage);
     cSmsMessage->SetToFromAddressL(phnumber);
     CheckSmsFlag(17);
     cSmsMessage->SmsPDU().SetServiceCenterAddressL(myservicecenter);
     RSmsSocketWriteStream writestream(socket);
     writestream << *cSmsMessage; // remember, this can Leave!
     writestream.CommitL();
     TRequestStatus status;
     TPckgBuf<TUint> sendBuffer;
     socket.Ioctl(KIoctlSendSmsMessage, status, &sendBuffer, KSolSmsProv);
     User::WaitForRequest(status);
     socket.Close();
     sockServ.Close();          /////////close to make again the connection
     CleanupStack::PopAndDestroy(cSmsMessage);
     CleanupStack::PopAndDestroy(3);//fileSession
    }
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,684

    Re: sms not support any language instead english......

    SMS uses 7-bit GSM encoding by default. If you want to modify it, try CSmsPDU::SetAlphabet.

  5. #5
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: sms not support any language instead english......

    Quote Originally Posted by wizard_hu_ View Post
    SMS uses 7-bit GSM encoding by default. If you want to modify it, try CSmsPDU::SetAlphabet.
    I applied SetAlphBet, but now outgoing msg is not open on phone, get SMS not supported
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

  6. #6
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: sms not support any language instead english......

    Quote Originally Posted by aamitgupta View Post
    I applied SetAlphBet, but now outgoing msg is not open on phone, get SMS not supported
    refer to this wiki post try changing the PDU portion as suggested.

  7. #7
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: sms not support any language instead english......

    Quote Originally Posted by skumar_rao View Post
    refer to this wiki post try changing the PDU portion as suggested.
    ya kumar i tried but message not open on phone.
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

  8. #8
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: sms not support any language instead english......

    Quote Originally Posted by aamitgupta View Post
    ya kumar i tried but message not open on phone.
    Still facing the issue, please any body help me.
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

Similar Threads

  1. Replies: 2
    Last Post: 2009-10-20, 07:51
  2. S40 can't support SMS ?
    By bokiteam2001 in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2007-06-14, 11:42
  3. Nokia6230 does not support SMS signing??
    By billlion in forum General Messaging
    Replies: 0
    Last Post: 2006-03-17, 09:48
  4. About S60 Chinese MIDP SDK Chinese language support
    By zhaolikang in forum Mobile Java General
    Replies: 0
    Last Post: 2004-01-09, 02:38
  5. SMS Support J2ME
    By TheCyclops in forum Mobile Java General
    Replies: 1
    Last Post: 2003-08-19, 07:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×