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 :/