I am new on QT and I have a problem with encoding. This is my main function
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
const char *charArray = "çşüğ";
QStrıng str1(charArray);
QString str2(argv[1]);
}
argv[1]
value is the same with charArray
on the caller exe side. But If I control the str1
and str2
values str1
is looking çşüğ but str2
ıs .!?><. I think it is because of encoding type. How can I fix this problem? Caller exe is c# application.