Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2006

    A way to read sms body in original format (not converted to USC2) from received sms?

    Hi all,
    I am trying to read the sms body from an incoming sms. However, using iDescription data from TMsvEntry class, it returns the converted sms body (in UCS2 format). Does anyone know if there is a way to read the sms body before it is converted to ucs2? I believe the original format is in GSM 03.38.
    Thanks a lot!

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003

    Re: A way to read sms body in original format (not converted to USC2) from received sms?

    you could use CMsvStore class to get the message directly from the store, or use CBaseMtm and its Body()-function.


  3. #3
    Regular Contributor
    Join Date
    Mar 2007

    Unhappy Re: A way to read sms body in original format (not converted to USC2) from received sms?

    Would you mind helping me?
    I need a help becuase I am very mixed up.
    I wanted to write an application to save SMS body in a text file.
    So I have written this code :
    void CSmsHandler::GetInboxSMS()

    // Create an MTM Registry object.
    CMsvEntry* entry = CMsvEntry::NewL(*iSession,KMsvSentEntryId/* KMsvGlobalInBoxIndexEntryId*/, TMsvSelectionOrdering());
    iSelection= entry->ChildrenWithMtmL(KUidMsgTypeSMS);
    TInt nCount = iSelection->Count();
    for(TInt index = 0; index < nCount; index++)
    TMsvId entryId = iSelection->At(index);
    // SMS arrived
    /* CBaseMtm* smsMtm = iMtmReg->NewMtmL(KUidMsgTypeSMS);
    const TMsvEntry& t=entry->Entry();
    TUid id=t.iMtm;
    if (iMtmReg->IsPresent(id))//if the MTM with the specified UID is registered
    CBaseMtm* clientMtm;
    iMtmReg->NewMtmL(id);//Unhandled exception
    TMsvEntry msvEntry = entry->Entry();

    But when it get to "iMtmReg->NewMtmL(id);//Unhandled exception"
    an exception happend
    what is reason ?
    what are the initialization that needed for making an CBaseMtm objects?

Similar Threads

  1. SMS: how to write a new received sms into inbox
    By l24012 in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2004-12-21, 01:58
  2. is it possible to read received SMS with AT commands on D211?
    By hansprueller in forum Multimodecards
    Replies: 1
    Last Post: 2003-07-23, 11:18
  3. read sms in PDU format
    By ckaren in forum General Messaging
    Replies: 1
    Last Post: 2003-02-19, 17:52
  4. SMS received, read and deleted, how to clear letter-icon?
    By seppmerk in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2002-11-10, 19:33
  5. i can read received sms with "at+cmgl=4"
    By oneldg in forum General Messaging
    Replies: 1
    Last Post: 2002-11-06, 12:35

Posting Permissions

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