There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
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, 22.214.171.124