Hi,
I'd like to send invisible characters via SMS but found a strange problem. The sendui does not correctly recognize string length when I insert invisible characters such as TChar(0), TChar(30), etc. Is there any way I can solve this problem?
Here are my code; for 64, 32, 64, the length is 3 which is right (see image 64_32_64.jpg); while for 64, 30, 64, only 67 slots are left (64_30_64.jpg).
Code:CMessageData* aMessage = CMessageData::NewLC(); CRichText* aRichText = CRichText::NewL(CParaFormatLayer::NewL(), CCharFormatLayer::NewL()); aRichText->InsertL( 0, (TChar)64 ); aRichText->InsertL( 0, (TChar)32 ); aRichText->InsertL( 0, (TChar)64 ); //1) sendui shows 157 (=160-3) characters available to be added //aRichText->InsertL( 0, (TChar)64 ); //aRichText->InsertL( 0, (TChar)30 ); //aRichText->InsertL( 0, (TChar)64 ); //2) sendui shows only 67 slots are left aMessage->SetBodyTextL( aRichText ); iSendUi->CreateAndSendMessageL(KSenduiMtmSmsUid, aMessage, KNullUid ); CleanupStack::PopAndDestroy(aMessage);



