Recent

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

krolikbest

  • Full Member
  • ***
  • Posts: 246
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

  • Sr. Member
  • ****
  • Posts: 299
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)
greetings Maik

Windows 10,
- Lazarus 2.2.6 (stable) + fpc 3.2.2 (stable)
- Lazarus 2.2.7 (fixes) + fpc 3.3.1 (main/trunk)

krolikbest

  • Full Member
  • ***
  • Posts: 246
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 :)

 

TinyPortal © 2005-2018