Hi,
Usually, for charsset problems we can use theses functions:
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
To copy to clipboard, switch view to plain text mode
However, In my case for a porting Qt3 to Qt4 I have a global constant.
const QString myVar
= "text with accent é à è"
const QString myVar = "text with accent é à è"
To copy to clipboard, switch view to plain text mode
In this case the string is interpreted by gcc. Is there any QT DEFINE to force use of UTF-8 ?
Thanks
Bookmarks