This project is read-only.

BOM in file

Apr 15, 2010 at 1:11 AM

I'm creating a zip file in memory with items also in memory. When I add a xml as a string entry and specify Encoding.UTF8 like this:

zip.AddEntry("some_file.txt", "some data", Encoding.UTF8);
then file has UTF-8 BOM prepended to it. Documentation for this function specifies that no byte-order-mark is emitted into the file. When I add file like this:

zip.AddEntry("some_file.txt", Encoding.UTF8.GetBytes("some data"));

then there is no BOM. Library is latest stable,



Apr 21, 2010 at 4:53 PM

Hmmm, ok, I will have to look at this.  Thanks for letting me know.

Apr 21, 2010 at 4:54 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.