Roger Cigol 118 Posted 7 hours ago It seems that Embarcadero are encouraging C++ (new tool chain) users to save source code as UTF-8 with BOM. Can anyone find an option in the IDE set up to force files to be saved in this format ? 1 Share this post Link to post
skyzoframe[hun] 4 Posted 7 hours ago I have the same question. I cannot save the *.xmlst file that I created at runtime in UTF-8-BOM format. Share this post Link to post
Uwe Raabe 2108 Posted 6 hours ago A file is stored in the format it has been loaded, unless you change the format via the File Encoding selector at the bottom of the editor. You can change the default encoding for new files in the Editor options. 1 1 Share this post Link to post
DelphiUdIT 218 Posted 5 hours ago I can confirm that UTF8 will be saved with BOM, certainly in the 12.3 editor. Share this post Link to post
Lajos Juhász 315 Posted 5 hours ago (edited) It is with BOM since the IDE introduced the file format. I believe I am using since XE5(?). Edit. I was wrong since D2007. Edited 5 hours ago by Lajos Juhász Share this post Link to post
Roger Cigol 118 Posted 4 hours ago 2 hours ago, Uwe Raabe said: You can change the default encoding for new files in the Editor options. Thanks @Uwe Raabe I knew it had to be somewhere - and I have now found both with the help of your hints! Share this post Link to post
Anders Melander 1935 Posted 1 hour ago ...and AFAIR there's a registry option to use UTF-8 without BOM if one wants to make life "more interesting". Share this post Link to post