Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

Encoding of UTF-8 vs UTF8-BOM

$
0
0
We have just gone live with NAV 2016 and we are creating a bunch of xml files using DotNet XMLDoc (XMLDoc := XMLDoc.XmlDocument;). Then I am using the XMLDocMgt codeunit to add nodes etc... In the end I am calling XMLDoc.Save to save the document which then is ftp'd to our website.

The problem is that these files encode in UTF-8-BOM not UTF-8. My declaration for all of these files is: <?xml version="1.0" encoding="UTF-8"?>. Turns out UTF-8-BOM doesn't work so well with our website. How can I force this to be UTF-8 and why is it choosing UTF-8-BOM?

One fix might be to change the encoding after the fact but not sure how to do that yet.

Viewing all articles
Browse latest Browse all 10032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>