×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    1

    Problem sending special characters using RSendAs

    Hello world,
    I am developing a cryptography application message, I am using RSendAs API to send messages. But when I try to send and receive an encrypted message on device with special characters, device "E61i" can not receive the right message. But on emulator it works.

    Code to send:
    RSendAs serv;
    if ( serv.Connect() == KErrNone )
    {
    CleanupClosePushL(serv);
    RSendAsMessage msg;
    CleanupClosePushL(msg);
    msg.CreateL(serv, KSenduiMtmSmsUid);
    msg.AddRecipientL(aTel,RSendAsMessage::ESendAsRecipientTo);
    msg.SetBodyTextL(SMSTextEncrypted);
    msg.SendMessageAndCloseL();
    CleanupStack::Pop(&msg);
    }
    else{ CleanupClosePushL(serv); }
    CleanupStack::PopAndDestroy(&serv);
    delete iCryptoaes;

    example:
    SMSTextEncrypted has L"…»Þ»€ó.‹\x0001ò\001E\063Þª\x0001!"

    The message receives in inbox is L"?????o.??ò?c???!"

    I don`t know why. Could someone help me. Thanks in advance.Sorry for my bad English.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,751

    Re: Problem sending special characters using RSendAs

    Note that 'standard' SMS-s use 7-bit ASCII. I am not sure if RSendAs automatically switches to other encoding.

    Hmm. I was searching for 8-bit RSendAs in the Wiki, so now I am rather convinced that RSendAs is not the best choice for this: http://wiki.forum.nokia.com/index.ph...S_with_RSendAs

    If you use the MTM-based approach, CSmsMessageSettings::SetCharacterSet can help you.

    An other possibility is sending the SMS with some ASCII-encoding, like Base64. If you search for *b*64* in the SDK Help, you will find support for that in ConArc, and TImCodecB64 seems to be an other possiblity.

  3. #3
    Registered User
    Join Date
    Feb 2010
    Posts
    17

    Re: Problem sending special characters using RSendAs

    hello
    when i am adding library to the mmp file it is saying that the file is derived ,do u really want to edit it,i clicked yes and when i add the library after building the project the library are not added there and also the mmp file contain a text stating

    U CANNOT EDIT THE MMP FILE THIS FILE IS GENERATED BY THE USER

    so any one can please tell me how sould i edit the mmp file
    i reaaly need the help so reply as soion as possible

    thankjs
    pushpankar

Similar Threads

  1. FEP and inserting special characters
    By MichaelOD in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-08-31, 09:00
  2. Replies: 2
    Last Post: 2006-08-11, 20:51
  3. display problems with special characters on 6680
    By goutam2004 in forum Mobile Java General
    Replies: 1
    Last Post: 2006-07-05, 18:50
  4. HELP! problem w/ sending and reading sms..
    By mauve928 in forum General Messaging
    Replies: 0
    Last Post: 2003-12-14, 19:10
  5. Problem with Greek Characters on Input
    By Nokia_Archived in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2002-05-15, 00:38

Posting Permissions

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