In VS Code, my source code is in UTF-8 without BOM, when build the project, the OUTPUT window presents the comment with the code in mess.
How could I specify the encoding for the OUTPUT window?
I got some clue, but I don't at where to put it.
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
Edit:
My compiler is mingw_64/g++ under Qt6.9.
