View Full Version : Disable uic translation from utf8

15th October 2009, 17:42

I want to prevent uic from generating code like this:

myPushButton->setText(QString::fromUtf8("\327\220\327\240\327\246\327\231\327\247\327\234\3 27\225\327\244\327\223\327\231\327\224"));

This is happen when i give, for example, an Hebrew label to a button. the characters are translated to this \XXX symbols. i want uic to generate the characters as i typed them in the QT designer/creator, or more precise, as they are in the .ui file.

what should i change in the uic code to disable this translation ?

10x in advance,

15th October 2009, 18:47
I think QtDesigner does this by design to ensure that the source code only ever contains ascii text.