Here the code used to call cmake:
compileProcess.start("cmake", {"--build", ".", "--config", "Release"});
compileProcess.waitForFinished();
QByteArray allStandardOutput
= compileProcess.
readAllStandardOutput();
QProcess compileProcess;
compileProcess.start("cmake", {"--build", ".", "--config", "Release"});
compileProcess.waitForFinished();
QByteArray allStandardOutput = compileProcess.readAllStandardOutput();
To copy to clipboard, switch view to plain text mode
I added a breakpoint to see the value of of the allStandardOutput and I can see also in Visual Studio the data inside doesn't have the accent but is replaced by ','.
Here a screenshot of the result from the breakpoint:
UnicodeProblem.jpg
You can see at the end of the image, the text should be "Tous droits réservés."
It's like the data is in ASCII so any conversion code will never end to something different. Outside the ASCII range got replaced by a character.
Bookmarks