The destination for my XML file is a company that uses Java and they are
having troubles with the BOM.
Forgive my ignorance, but could you explain how to use that object with the
code I provided. I don't really understand how to use that object with the
xmldocument.
"Oleg Tkachenko [MVP]" <oleg@NO!SPAM!PLEASEtkachenko.com> wrote in message
news:e7**************@TK2MSFTNGP10.phx.gbl...
Nigel Armstrong wrote:
If you are persisting as UTF-8, then of course you will have the byte
order mark. Could you explain what the problem is with it?
One thing you could do is use an encoding like ISO-8859-1 if you don't
want the BOM.
Btw, in UTF-8 BOM is actually optional. One can supress BOM's output
using new UTF8Encoding(false) constructor.
--
Oleg Tkachenko [XML MVP]
http://blog.tkachenko.com