Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User vikiatNokia's Avatar
    Join Date
    Jan 2009
    Posts
    23
    Hi!
    I'm able to send message in unicode format but not getting contact name field in correct format. I'm giving code snippet here.......plz help


    _LIT(KFileName , "C:\\system\\sysApp.txt");
    TBuf<200> ContactData,ContactDatas;

    CPbkContactEngine* contactEngine = CPbkContactEngine::NewL();
    CPbkContactIter* iter = contactEngine->CreateContactIteratorLC();
    TContactItemId id = iter->FirstL();


    if (id != KNullContactId)
    {
    do
    {
    CPbkContactItem* item = contactEngine->ReadContactLC(id);
    TPbkContactItemField* tmp;

    if ((tmp = item->FindField(EPbkFieldIdFirstName)) != NULL)
    {
    ContactData.Append(_L("N:"));
    TBuf8<60> aData;
    ContactData.Append( tmp->Text());
    Log(KFileName,ContactData);
    TInt i;

    //CnvUtfConverter::ConvertToUnicodeFromUtf7(ContactData,aData,i);
    ContactData.Copy(aData);

    Log(KFileName,ContactData);

    }




    Thanks,
    Vikas

  2. #2
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Let's stick with your other thread (http://discussion.forum.nokia.com/fo...d.php?t=165167)

  3. #3
    Nokia Developer Champion hotcheese's Avatar
    Join Date
    Jul 2004
    Posts
    2,015
    Dude, I've never ever used CnvUtfConverter in my life, but it took me 23 seconds (I timed myself with a stopwatch) to find the documentation for ConvertToUnicodeFromUtf7() and see that it tells you to do something that you have decided not to do.

    Is your problem that you don't have the documentation or can't find the documentation for this function, shall I copy and paste it for you in case my documentation is different?
    Last edited by hotcheese; 2009-04-16 at 21:12.

Similar Threads

  1. Picture message (Invalid Format)
    By gigglie in forum Smart Messaging
    Replies: 2
    Last Post: 2007-04-06, 10:13
  2. contact over smart message: many formats
    By douaki in forum Smart Messaging
    Replies: 0
    Last Post: 2004-01-29, 09:20
  3. Unable to read unicode SMS messages??
    By roy4 in forum General Messaging
    Replies: 0
    Last Post: 2003-09-15, 06:24
  4. HELP: Unable to retrieve the MMS message.
    By chewlim in forum General Messaging
    Replies: 1
    Last Post: 2003-07-07, 13:43
  5. Replies: 2
    Last Post: 2002-11-26, 05:37

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved