UTF-8BOM to UTF-8

omyvadiyaomyvadiya Member Posts: 124
edited 2020-04-16 in NAV Three Tier
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
efx8p6j7gj0h.png
9kafhysk0dkz.png
Sign In or Register to comment.