×

Discussion Board

Results 1 to 2 of 2

Thread: unicode problem

  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    192

    Question unicode problem

    Hi,

    I am facing a problem replacing a unicode character in a string into another string.
    it means i have the following string :
    Code:
    QString s = "hello Mr. \uE00B";
    and i want the result to be per example:
    Code:
     s = "hello Mr. lipos";
    i have used the below code in order to replace the character
    Code:
     s.replace(QChar('\uE00B'),"lipos");
    but it doesn't work.
    any idea about this issue.
    note that '\uE00B' is a unicode character.
    Best regards,

  2. #2
    Registered User
    Join Date
    Jan 2011
    Posts
    192

    Re: unicode problem

    Quote Originally Posted by lipos123 View Post
    Hi,

    I am facing a problem replacing a unicode character in a string into another string.
    it means i have the following string :
    Code:
    QString s = "hello Mr. \uE00B";
    and i want the result to be per example:
    Code:
     s = "hello Mr. lipos";
    i have used the below code in order to replace the character
    Code:
     s.replace(QChar('\uE00B'),"lipos");
    but it doesn't work.
    any idea about this issue.
    note that '\uE00B' is a unicode character.
    Best regards,
    problem solved.

Similar Threads

  1. Problem about unicode to gbk
    By zzf073 in forum Symbian
    Replies: 0
    Last Post: 2010-03-09, 02:16
  2. Unicode Problem
    By helwg1130 in forum Mobile Java General
    Replies: 1
    Last Post: 2009-02-14, 15:49
  3. unicode problem
    By bayaraa in forum Mobile Java General
    Replies: 6
    Last Post: 2006-08-10, 16:57
  4. Unicode problem
    By yackimoff in forum Symbian
    Replies: 0
    Last Post: 2005-09-25, 23:35
  5. Help! Unicode SMS Problem
    By kuaichuan in forum Multimodecards
    Replies: 1
    Last Post: 2003-10-22, 11: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
  •