For Unicode versions of Delphi, all text is exported with UTF8 encoding. Most text readers such as Notepad can detect UTF8 text without a byte order mark (BOM) added which is why we do not add it by default.
It may be necessary for you to add the BOM to your exported output to get the correct text. To do so, you can simply set the TextFileDevice.IncludeBOM property to True after the device has been created. The Report.OnFileDeviceCreate event is a good place to do this.
procedure TForm1.ppReport1FileDeviceCreate(Sender: TObject); begin
if (Report.FileDevice is TppTextFileDevice) then TppTextFileDevce(Report.FileDevice).IncludeBOM := True;
Comments
For Unicode versions of Delphi, all text is exported with UTF8 encoding.
Most text readers such as Notepad can detect UTF8 text without a byte
order mark (BOM) added which is why we do not add it by default.
It may be necessary for you to add the BOM to your exported output to
get the correct text. To do so, you can simply set the
TextFileDevice.IncludeBOM property to True after the device has been
created. The Report.OnFileDeviceCreate event is a good place to do this.
procedure TForm1.ppReport1FileDeviceCreate(Sender: TObject);
begin
if (Report.FileDevice is TppTextFileDevice) then
TppTextFileDevce(Report.FileDevice).IncludeBOM := True;
end;
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
(I did not thank you)