In File > Preferences > Compiler > Defaults you will find the following points:
- Sourcefile Text encoding
- Sourcefile Newline Format
These two points are hard to find, because they have nothing to do with the compiler.
They should be added in File > Preferences > Editor > ...
Sourcefile Text encoding / Sourcefile Newline Format
Sourcefile Text encoding / Sourcefile Newline Format
sorry for my bad english