How can I set the default file format in the Delphi IDE to UTF8?
delphi, delphi-2009, file-encodings, utf-8
Solution
AFAIK, there is no IDE-wide setting for specifying the default file format.
Problem
Delphi 2009 sets the default file format for new source code files to ANSI, this makes the source code platform-dependent. Even for a new XSD file created in the IDE, which by default starts with this line ``` <?xml version="1.0" encoding="UTF-8" ?> ``` Delphi sets the file format to ANSI (this looks like a bug, for new XML and XSLT documents UTF8 is selected by default). Is there a hidden option to set the default file format for source code files?