It seems like there\'s an ambiguity between th开发者_JS百科e Byte Order Marks used for UTF16-LE and UTF-32LE.In particular, consider a file that contains the following 8 bytes:
The post is updated. Please kindly jump to the Solution part, if you\'ve already read the posted question. Thanks!
How do remove the BOM from an XML file that is being created? I have tried using the new UTF8Encoding(false) method, but it doesn\'t work. Here is the code I have: