This question has already been answered:
- Russian language in the console 4 answers
How to read the data (and output to the console) so that the string is normal without escape characters and that individual words are not replaced with byte encoding, for example, Connected. What is the problem?
#include <QCoreApplication> #include <QProcess> #include <QDebug> #include <QTextCodec> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QProcess *console = new QProcess(); QStringList aList; console->start( "ipconfig" ); QByteArray aOut; if( console->waitForFinished( ) == true ) { aOut = console->readAllStandardOutput(); } QTextCodec *codec = QTextCodec::codecForName( "Windows-1251" ); QString sOut = codec->toUnicode( aOut ); qDebug() << sOut; return a.exec(); } 
QString sOut = codec->toUnicode( QString(aOut).toLocal8Bit() );- it will help a little. - KoVadim