×

Discussion Board

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

    convert to unicode

    Hi experts,
    I'm using serial module and using this command to send to mobile...
    codes from PC:
    Code:
    line=ser.write(msg)
    Codes to mobile:
    Code:
    mylist = []
    buf=''
    r=''
    x=1
    while True:
        r=sock.read()
        if r=='\n':
            print x,']',buf
            mylist.append(buf)
            x=x+1
            buf=''
            r=''
        else:         
            buf+=r
    The above codes are working great, when i tried to put in selection_list()
    "appuifw.selection_list(choices=mylist, , search_field=1)", I got an error regarding about "utf-8". Probably I need to make the data in a unicode format..but I'm not sure. Please give advice.


    Thanks in advance,

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: convert to unicode

    Well have you tried converting it to Unicode? Try it and see if it helps.
    It would also help if you told us the exact error message.

  3. #3
    Registered User
    Join Date
    Dec 2008
    Posts
    101

    Re: convert to unicode

    Hi Bogdan,
    Yup I tried to use unicode and now it works fine...thanks for the reply

Similar Threads

  1. QT打包出错:error: cannot convert file to unicode
    By guirenwang in forum [Archived] Qt General ( Qt技术)
    Replies: 3
    Last Post: 2009-05-23, 02:08
  2. error: cannot convert file to unicode
    By PACALA_BA in forum Symbian
    Replies: 3
    Last Post: 2008-07-05, 17:54
  3. Replies: 0
    Last Post: 2006-11-30, 07:33

Posting Permissions

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