I´m writing a cpp file in C::B editor, where due a few special characters I´m using C::B sets the encoding of the file to UTF-8.
That´s all fine.
Now I open this file with another editor, such as Windows-Notepad and save it again (without any changes).
From here on, i.e. if I try to rebuild the project, C::B will tell me, the file is invalid.
The only way I found how to solve this is create a new file and copy&paste the content of the old file from Windows-Notepad to C::B editor.
My guess is, Windows-Notepad is obviously not the best choice, it might save the file in different encoding and/or add a BOM or something.
Actually I didn´t resave the file on purpose, was just a clicking mistake when I tried to quick look up a piece of text from the file.
Anyway, is there a way to fix the invalid file without recreating it?