Do you think this will solve:
Instead of use the component SaveDialog, I will put SaveTextFileDialog, which allows to choice between the formats. And, according to the selected format, I will use the function
It was not about saving the file, it was about opening and editing Here is an example of file which is encoded as UTF-8, but without a BOM bytes at start. Correct version of it should looks like:
Code:
program demo;

begin
  // Here should be a Russin text
  writeln( 'Вот тут вот русский текст :)' );
end.