Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: DrOli on June 25, 2017, 10:14:21 pm
-
Is there a way to force the code editor to accept only ASCII or even better to convert all encodings to ASCII (as best that it can).
The primary objective is to prevent fancy encoding to be accepted, say when copy/paste for a web page, and then having a compiler crash since it does not accept fancy encodings (e.g. Fortran), and the throws some weird error messages that take a disproportionately (and unnecessary) huge time/expense to resolve.
Yes, I accept that means some "paste's" will "look ugly", or requiring "fixing", but that is MUCH PREFERRED.
I looked in Settings/Editor etc, but did not see anything obvious ... though I don't really know what many of the long list of encodings means.
Please advise
Cheers
-
You might try the UTF-8 encoding and see if it works better than what encoding you currently have set.
The GCC Compiler uses UTF-8.
Tim S.
-
Settings->Environment->General settings->Encoding settings
and
Edit->File encoding