Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/a19990412/article/details/90520691
Brief
Writing project today, when there vscode read or notepad ++, or even Notepad, open no problem.
But read the file stream output by vs time, is garbled.
Tested, direct output Chinese, there is no problem.
So the question becomes identified is encoded in the file.
(I suggest that, like so under test, or the solution is not necessarily got to help you)
solution
Open the corresponding file Notepad.
Then, Save As, find the file encoding, if it is changed to UTF-8 on ANSII. vice versa.
Then the newly generated file may be endnotes * .txt, read the file saved as like a ~