Hi,
I tried this:
qDebug("myvariable=%s", value.constData());
cout << "myvariable=" << value.constData() << endl;
qDebug() << "myvariable=" << value.constData() << endl;
QByteArray value = qgetenv("myvariable");
qDebug("myvariable=%s", value.constData());
cout << "myvariable=" << value.constData() << endl;
qDebug() << "myvariable=" << value.constData() << endl;
To copy to clipboard, switch view to plain text mode
The result is:
myvariable=Développement
myvariable=Dveloppement
myvariable=Dveloppement
myvariable=Développement
myvariable=Dveloppement
myvariable=Dveloppement
To copy to clipboard, switch view to plain text mode
So, thank you for your help! No problem with qgetenv.
Why cout and qDebug() don't print correctly the value ?
Bookmarks