Question
source file is not valid UTF-8 clang (invalid_utf8)
- December 15, 2025
- 1 reply
- 60 views
Hello,
I used vscode with st externsion Ver3.6.4. One day, suddenly, VSCode started showing many red lines and warnings, including "main.h" source file is not valid UTF-8 clang (invalid_utf8).
the file looks like:


and many other redlines, because of clangd.
how can fix it? it makes file very ugly, evenif it can be compiled no error.
Thanks.
