@@ -102,39 +102,39 @@ public static partial class ZipFile
102
102
/// If the file exists and is not a Zip file, a <code>ZipArchiveException</code> will be thrown.
103
103
/// If the file exists and is empty or does not exist, a new Zip file will be created.
104
104
/// Note that creating a Zip file with the <code>ZipArchiveMode.Create</code> mode is more efficient when creating a new Zip file.</param>
105
- /// <param name="entryNameEncoding">The encoding to use when reading or writing entry names in this ZipArchive.
105
+ /// <param name="entryNameEncoding">The encoding to use when reading or writing entry names and comments in this ZipArchive.
106
106
/// /// <para>NOTE: Specifying this parameter to values other than <c>null</c> is discouraged.
107
107
/// However, this may be necessary for interoperability with ZIP archive tools and libraries that do not correctly support
108
- /// UTF-8 encoding for entry names.<br />
108
+ /// UTF-8 encoding for entry names or comments .<br />
109
109
/// This value is used as follows:</para>
110
110
/// <para><strong>Reading (opening) ZIP archive files:</strong></para>
111
111
/// <para>If <c>entryNameEncoding</c> is not specified (<c>== null</c>):</para>
112
112
/// <list>
113
113
/// <item>For entries where the language encoding flag (EFS) in the general purpose bit flag of the local file header is <em>not</em> set,
114
- /// use the current system default code page (<c>Encoding.Default</c>) in order to decode the entry name.</item>
114
+ /// use the current system default code page (<c>Encoding.Default</c>) in order to decode the entry name and comment .</item>
115
115
/// <item>For entries where the language encoding flag (EFS) in the general purpose bit flag of the local file header <em>is</em> set,
116
- /// use UTF-8 (<c>Encoding.UTF8</c>) in order to decode the entry name.</item>
116
+ /// use UTF-8 (<c>Encoding.UTF8</c>) in order to decode the entry name and comment .</item>
117
117
/// </list>
118
118
/// <para>If <c>entryNameEncoding</c> is specified (<c>!= null</c>):</para>
119
119
/// <list>
120
120
/// <item>For entries where the language encoding flag (EFS) in the general purpose bit flag of the local file header is <em>not</em> set,
121
- /// use the specified <c>entryNameEncoding</c> in order to decode the entry name.</item>
121
+ /// use the specified <c>entryNameEncoding</c> in order to decode the entry name and comment .</item>
122
122
/// <item>For entries where the language encoding flag (EFS) in the general purpose bit flag of the local file header <em>is</em> set,
123
- /// use UTF-8 (<c>Encoding.UTF8</c>) in order to decode the entry name.</item>
123
+ /// use UTF-8 (<c>Encoding.UTF8</c>) in order to decode the entry name and comment .</item>
124
124
/// </list>
125
125
/// <para><strong>Writing (saving) ZIP archive files:</strong></para>
126
126
/// <para>If <c>entryNameEncoding</c> is not specified (<c>== null</c>):</para>
127
127
/// <list>
128
- /// <item>For entry names that contain characters outside the ASCII range,
128
+ /// <item>For entry names or comments that contain characters outside the ASCII range,
129
129
/// the language encoding flag (EFS) will be set in the general purpose bit flag of the local file header,
130
- /// and UTF-8 (<c>Encoding.UTF8</c>) will be used in order to encode the entry name into bytes.</item>
131
- /// <item>For entry names that do not contain characters outside the ASCII range,
130
+ /// and UTF-8 (<c>Encoding.UTF8</c>) will be used in order to encode the entry name and comment into bytes.</item>
131
+ /// <item>For entry names or comments that do not contain characters outside the ASCII range,
132
132
/// the language encoding flag (EFS) will not be set in the general purpose bit flag of the local file header,
133
- /// and the current system default code page (<c>Encoding.Default</c>) will be used to encode the entry names into bytes.</item>
133
+ /// and the current system default code page (<c>Encoding.Default</c>) will be used to encode the entry names and comments into bytes.</item>
134
134
/// </list>
135
135
/// <para>If <c>entryNameEncoding</c> is specified (<c>!= null</c>):</para>
136
136
/// <list>
137
- /// <item>The specified <c>entryNameEncoding</c> will always be used to encode the entry names into bytes.
137
+ /// <item>The specified <c>entryNameEncoding</c> will always be used to encode the entry names and comments into bytes.
138
138
/// The language encoding flag (EFS) in the general purpose bit flag of the local file header will be set if and only
139
139
/// if the specified <c>entryNameEncoding</c> is a UTF-8 encoding.</item>
140
140
/// </list>
@@ -322,23 +322,23 @@ public static void CreateFromDirectory(string sourceDirectoryName, string destin
322
322
/// <param name="includeBaseDirectory"><code>true</code> to indicate that a directory named <code>sourceDirectoryName</code> should
323
323
/// be included at the root of the archive. <code>false</code> to indicate that the files and directories in <code>sourceDirectoryName</code>
324
324
/// should be included directly in the archive.</param>
325
- /// <param name="entryNameEncoding">The encoding to use when reading or writing entry names in this ZipArchive.
325
+ /// <param name="entryNameEncoding">The encoding to use when reading or writing entry names and comments in this ZipArchive.
326
326
/// /// <para>NOTE: Specifying this parameter to values other than <c>null</c> is discouraged.
327
327
/// However, this may be necessary for interoperability with ZIP archive tools and libraries that do not correctly support
328
- /// UTF-8 encoding for entry names.<br />
328
+ /// UTF-8 encoding for entry names or comments .<br />
329
329
/// This value is used as follows while creating the archive:</para>
330
330
/// <para>If <c>entryNameEncoding</c> is not specified (<c>== null</c>):</para>
331
331
/// <list>
332
- /// <item>For file names that contain characters outside the ASCII range:<br />
332
+ /// <item>For file names or comments that contain characters outside the ASCII range:<br />
333
333
/// The language encoding flag (EFS) will be set in the general purpose bit flag of the local file header of the corresponding entry,
334
- /// and UTF-8 (<c>Encoding.UTF8</c>) will be used in order to encode the entry name into bytes.</item>
335
- /// <item>For file names that do not contain characters outside the ASCII range:<br />
334
+ /// and UTF-8 (<c>Encoding.UTF8</c>) will be used in order to encode the entry name and comment into bytes.</item>
335
+ /// <item>For file names or comments that do not contain characters outside the ASCII range:<br />
336
336
/// the language encoding flag (EFS) will not be set in the general purpose bit flag of the local file header of the corresponding entry,
337
- /// and the current system default code page (<c>Encoding.Default</c>) will be used to encode the entry names into bytes.</item>
337
+ /// and the current system default code page (<c>Encoding.Default</c>) will be used to encode the entry names and comments into bytes.</item>
338
338
/// </list>
339
339
/// <para>If <c>entryNameEncoding</c> is specified (<c>!= null</c>):</para>
340
340
/// <list>
341
- /// <item>The specified <c>entryNameEncoding</c> will always be used to encode the entry names into bytes.
341
+ /// <item>The specified <c>entryNameEncoding</c> will always be used to encode the entry names and comments into bytes.
342
342
/// The language encoding flag (EFS) in the general purpose bit flag of the local file header for each entry will be set if and only
343
343
/// if the specified <c>entryNameEncoding</c> is a UTF-8 encoding.</item>
344
344
/// </list>
@@ -408,7 +408,7 @@ public static void CreateFromDirectory(string sourceDirectoryName, Stream destin
408
408
/// <param name="destination">The stream where the zip archive is to be stored.</param>
409
409
/// <param name="compressionLevel">One of the enumeration values that indicates whether to emphasize speed or compression effectiveness when creating the entry.</param>
410
410
/// <param name="includeBaseDirectory"><see langword="true" /> to include the directory name from <paramref name="sourceDirectoryName" /> at the root of the archive; <see langword="false" /> to include only the contents of the directory.</param>
411
- /// <param name="entryNameEncoding">The encoding to use when reading or writing entry names in this archive. Specify a value for this parameter only when an encoding is required for interoperability with zip archive tools and libraries that do not support UTF-8 encoding for entry names.</param>
411
+ /// <param name="entryNameEncoding">The encoding to use when reading or writing entry names in this archive. Specify a value for this parameter only when an encoding is required for interoperability with zip archive tools and libraries that do not support UTF-8 encoding for entry names or comments .</param>
412
412
/// <remarks>
413
413
/// The directory structure from the file system is preserved in the archive. If the directory is empty, an empty archive is created.
414
414
/// Use this method overload to specify the compression level and character encoding, and whether to include the base directory in the archive.
0 commit comments