This project is read-only.


BOM in file contrary to the behavior described by the documentation


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,
Closed Jun 13, 2011 at 7:17 PM by Cheeso
fixed in Changeset #79043 . This is a doc change. First binary with this fix: v1.9.1.6.


Cheeso wrote Jun 2, 2010 at 11:56 PM

Yes, good catch!

wrote Jun 13, 2011 at 7:17 PM

wrote Feb 22, 2013 at 2:43 AM

wrote May 16, 2013 at 1:31 PM