ber_44
9th July 2007, 01:56
QApplication app(argc, argv);
QTextCodec::setCodecForCStrings(QTextCodec::codecF orName("windows-1252"));
QTextCodec::setCodecForLocale(QTextCodec::codecFor Name("windows-1252"));
//...
Using this code I can display and 'e' with acute by calling
QMessageBox::about (this,"About",QString::fromLocal8Bit("\xe9"));
but "\xe1" for an 'a' with acute won't work.
On Windows, I get a compiler warning, saying that "hex escape sequence out of range".
Any workarounds?
QTextCodec::setCodecForCStrings(QTextCodec::codecF orName("windows-1252"));
QTextCodec::setCodecForLocale(QTextCodec::codecFor Name("windows-1252"));
//...
Using this code I can display and 'e' with acute by calling
QMessageBox::about (this,"About",QString::fromLocal8Bit("\xe9"));
but "\xe1" for an 'a' with acute won't work.
On Windows, I get a compiler warning, saying that "hex escape sequence out of range".
Any workarounds?