Code::Blocks Forums
User forums => Help => Topic started by: jeremiahwuzza on July 21, 2015, 10:09:00 am
-
In one file and one only I get this pop=up message in CB 13.12:
'The saved document contains characters which were illegal in the selected encoding.The file's encoding has been changed to UTF-8 to prevent you from losing data'
Everything still works properly, but I hate the word 'illegal'. I have looked through the cpp file (of 217 lines) and can't see anything obviously out of the ordinary. How can I find the non-ASCII characters that are causing this?
-
Probably using the hex editor plugin or by writing a simple program to open the file and search for the character.
But I guess it will be good if the error message mentions the line where the wrong character is found :)