Converting to execution character set: Illegal byte sequence Erorr ?!!!
General and Desktop
4
Posts
2
Posters
7.1k
Views
1
Watching
-
wrote on 3 May 2012, 22:21 last edited by
hi
@
#include <QtGui>int main(int argc, char **argv)
{
QApplication app(argc, argv);QPushButton btn; btn.setText( QString::fromWCharArray(L"سلام") ); btn.show(); return app.exec();
}
@what is wrong in this code ?!! that take "converting to execution character set: Illegal byte sequence" erorr.
qt 4.8.1 : qt creator 2.4.1 : MinGW-gcc440_1 compileri write this code with msvc compiler and compile successfuly but with mingw ... !!
-
wrote on 3 May 2012, 22:29 last edited by
What you need is told MinGW which encoding your source file used if is not UTF-8.
In addition, MinGW-gcc4.4 seems have a bug, maybe -finput-charset=charset will refuse to work. You can try to update your MinGW to 4.6 +
-
wrote on 3 May 2012, 22:33 last edited by
i cant understand your means. i use UTF-8 method but take the same erorr!
-
wrote on 4 May 2012, 08:48 last edited by
i update my mingw but take the same error ! please help me
1/4