Results 1 to 5 of 5

Thread: How to use Unicode in Qt source code.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2010
    Posts
    69
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    8
    Thanked 1 Time in 1 Post

    Default How to use Unicode in Qt source code.

    Hi Everyone,
    I want to use Unicode in my source code. I am generating a database randomly and for that I am using the following code;

    Qt Code:
    1. #define COUNT (20)
    2.  
    3. char* ppcFirstNames[COUNT] = {"কফজগ্লস্ক","কফজগ্লস্ক","কফজগ্লস্ক","কফজগ্লস্ক","কফজগ্লস্ক",
    4. "কফজগ্লস্ক","কফজগ্লস্ক","কফজগ্লস্ক","কফজগ্লস্ক","কফজগ্লস্ক",
    5. "কফজগ্লস্ক","কফজগ্লস্ক","কফজগ্লস্ক","কফজগ্লস্ক","কফজগ্লস্ক",
    6. "কফজগ্লস্ক","কফজগ্লস্ক","কফজগ্লস্ক","কফজগ্লস্ক","কফজগ্লস্ক"};
    To copy to clipboard, switch view to plain text mode 

    But when I am trying this it gives me the following warning and it stores some funny characters in my database;

    warning C4566: character represented by universal-character-name '\u09CD' cannot be represented in the current code page (1252)

    Any help will be appreciated.
    Thanks in advance.

    Chandan
    Last edited by wysota; 26th May 2010 at 12:04.

Similar Threads

  1. Where is the source code?
    By Fletcher in forum Newbie
    Replies: 1
    Last Post: 10th December 2009, 20:45
  2. Replies: 6
    Last Post: 7th August 2009, 17:00
  3. source code
    By Colx007 in forum Newbie
    Replies: 5
    Last Post: 19th December 2007, 09:15
  4. source in unicode 4.0
    By conexion2000 in forum Qt Programming
    Replies: 1
    Last Post: 10th August 2007, 11:28
  5. Qte source code
    By Gaurav vyas in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 1st July 2007, 14:11

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.