Results 1 to 2 of 2

Thread: encoding problem

  1. #1
    Join Date
    Oct 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default encoding problem

    I am using Qt to develop application in Croatian language (special characters: čćšđž) for Symbian and I have problem with encoding.

    All that I create in Qt Designer is visible correctly on my Nokia simulator. But when I put it on my phone, the characters are not showing correctly.

    Second thing, when I am trying to put new text for QPushButton, or print text with qDebug, it is not showing correctly even on my simulator.


    I tried:
    Qt Code:
    1. int main(int argc, char *argv[])
    2. {
    3. QApplication a(argc, argv);
    4. QTextCodec *codec = QTextCodec::codecForName("UTF-8");
    5. QTextCodec::setCodecForCStrings(codec);
    6. QTextCodec::setCodecForLocale(codec);
    7. QTextCodec::setCodecForTr(codec);
    To copy to clipboard, switch view to plain text mode 

    and set in Options envoriment encoding to UTF-8, but nothing help.


    Any help from you guys :/

  2. #2
    Join Date
    Oct 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default Re: encoding problem

    ok, I fixed character showing in my simulator (I made my new projec and now it is working well). But on symbian it is not showing properly.

Similar Threads

  1. QFileDialog filename encoding problem on S60
    By Enchant in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 3rd May 2010, 03:51
  2. SQLite encoding problem
    By cevou in forum Qt Programming
    Replies: 3
    Last Post: 27th September 2009, 21:37
  3. Encoding problem with QTextEdit
    By alexandernst in forum Newbie
    Replies: 3
    Last Post: 2nd September 2009, 11:49
  4. QTableView encoding problem
    By SudaNix in forum Newbie
    Replies: 7
    Last Post: 26th February 2008, 14:19
  5. qt and mysql encoding problem
    By ferasodh in forum Qt Programming
    Replies: 1
    Last Post: 8th September 2007, 09:48

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.