Thanks Steve,
I am using SK's HTTPAPIR4 service program that retrieves the xml file.
Don't suppose you would know how to set
UTF8Encoding(false)
I tried setting the file type to text/xml but that did not change anything.
Thanks
Don
Don Brown
Senior Consultant
OneTeam IT Pty Ltd
P: 1300 088 400
________________________________
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> on behalf of Stephen Landess <steve_landess@xxxxxxxxxxx>
Sent: Wednesday, 20 November 2024 1:40 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: RE: xml file with invalid characters at the start of the stream file
Don -
that's a BOM (Byte Order Mark)
This may shed some additional light on the subject:
https://stackoverflow.com/questions/44098326/ef-bb-bf-at-the-beginning-of-json-files-created-in-visual-studio
Regards,
Steve
Don Brown wrote:
I am sure I have seen this question asked before but searching has not found it.
We are using httpapi to retrieve a list of files that is returned in xml
The xml file saved to the ifs has the following leading characters that then results into xml-into failing.
<?xml version="1.0" encoding="utf-8"?>
In case these characters get corrupted in the email / forum they are hex x'EFBBBF'
A valid xml file must start with a < so we can't just blank these characters out.
And xml-into does not allow a substring that I have found.
So if I can't stop the invalid characters how would I shift the contents of the stream file left by 3 characters or I expect there is a better option ?
Thank you to any suggestions or examples.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.
--
Message protected by MailGuard: e-mail anti-virus, anti-spam and content filtering.
https://www.mailguard.com.au
Click here to report this message as spam:
https://console.mailguard.com.au/ras/295IGlHCO4/7A1lvWutFrR9Q0jg4vCijl/0.2
As an Amazon Associate we earn from qualifying purchases.