Lazarus

Programming => General => Topic started by: krolikbest on October 20, 2019, 08:41:21 pm

Title: TSimpleXMLExporter and encoding xml file
Post by: krolikbest on October 20, 2019, 08:41:21 pm
Hello,

 i'm using this component and it works but don't know why in created xml file first line is like:

<?xml version="1.0" encoding = "ISO 8859-1" ?>

instead of encoding="UTF-8". I'm exporting simple datas from text file using TSimpleXMLExporter. Code looks like:
Code: Pascal  [Select][+][-]
  1. procedure TForm1.Button1Click(Sender: TObject);
  2. begin
  3.   exporter.Execute; //TSimpleXMLExporter
  4. end;
  5.  
Dataset for this exporter is set to SdfDataSet1 in which i read this text file.
Did I miss something somwhere?
Title: Re: TSimpleXMLExporter and encoding xml file
Post by: sstvmaster on October 20, 2019, 09:22:40 pm
from readme.txt of component dbexport:

Quote
TSimpleXMLExporter - Export to XML file (no UTF-8, just ASCII)
Title: Re: TSimpleXMLExporter and encoding xml file
Post by: krolikbest on October 21, 2019, 04:37:03 pm
Thanks, now I see :)
As usual, if all fails please read help :)
TinyPortal © 2005-2018