Hostel
30th October 2010, 15:47
I have source files with UTF-8 coding.
In .pro file I add
CODECFORTR = UTF-8
CODECFORSRC = UTF-8
In main.cpp I add
QTextCodec::setCodecForCStrings(QTextCodec::codecF orName("UTF-8"));
QTextCodec::setCodecForTr(QTextCodec::codecForName ("UTF-8"));
And when I made lupdate then in Qt Linguist I have a good coding for words from .ui file and wrong from words which are from .cpp files.
How to resolve this?
In .pro file I add
CODECFORTR = UTF-8
CODECFORSRC = UTF-8
In main.cpp I add
QTextCodec::setCodecForCStrings(QTextCodec::codecF orName("UTF-8"));
QTextCodec::setCodecForTr(QTextCodec::codecForName ("UTF-8"));
And when I made lupdate then in Qt Linguist I have a good coding for words from .ui file and wrong from words which are from .cpp files.
How to resolve this?