News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Restrict editor to ASCII

Started by DrOli, June 25, 2017, 10:14:21 PM

Previous topic - Next topic

DrOli

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

stahta01

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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

BlueHazzard

Settings->Environment->General settings->Encoding settings

and

Edit->File encoding