Recent

Author Topic: TSimpleXMLExporter and encoding xml file  (Read 593 times)

krolikbest

  • Jr. Member
  • **
  • Posts: 96
TSimpleXMLExporter and encoding xml file
« 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?

sstvmaster

  • Full Member
  • ***
  • Posts: 127
Re: TSimpleXMLExporter and encoding xml file
« Reply #1 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)
Lazarus 2.0.4 x32
Lazarus 2.1.0 Trunk x32
OS Win 7 32bit

krolikbest

  • Jr. Member
  • **
  • Posts: 96
Re: TSimpleXMLExporter and encoding xml file
« Reply #2 on: October 21, 2019, 04:37:03 pm »
Thanks, now I see :)
As usual, if all fails please read help :)