Author Topic: illegal in the selected encoding  (Read 9178 times)

Offline jeremiahwuzza

  • Single posting newcomer
  • *
  • Posts: 2
illegal in the selected encoding
« 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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: illegal in the selected encoding
« Reply #1 on: July 22, 2015, 06:13:52 pm »
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 :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]