hI,
I am calling a Xmlport in a report to get the output via job queue:
Code in Report:
ILE.RESET;
ILE.SETRANGE("Posting Date",TODAY-1);
ILE.SETRANGE("Entry Type",ILE."Entry Type"::Purchase);
ILE.SETRANGE("Document Type",ILE."Document Type"::"Purchase Receipt");
IF ILE.FINDFIRST THEN BEGIN
Xmlp.CREATE('E:\ERP\' + ActualFileName,TEXTENCODING::UTF8);
Xmlp.CREATEOUTSTREAM(XmlStream);
XMLPORT.EXPORT(50020, XmlStream);
Xmlp.CLOSE;
END;
where xmlp is a of datatype file
Still the output .txt file is of encoding UTF-8 BOM,
XMLport properties are in the attached file
Thanks in advance