0

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?

enter image description here

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.

3
  • what's your compiler? provide version info. what are your compiler flags? Commented May 27 at 1:03
  • @starball, /Qt/6.9.0/mingw_64/bin/g++.exe Commented May 27 at 1:08
  • Please do not use (sole) images of code/data/errors in your minimal reproducible example. Copy the actual text, paste it into the question, then format it as code. Commented May 27 at 16:16

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.