Ionic Zip Library v1.9
ActualEncoding Property
ReferenceIonic.ZipZipEntryActualEncoding
The text encoding actually used for this ZipEntry.
Declaration Syntax
C#Visual BasicVisual C++
public Encoding ActualEncoding { get; }
Public ReadOnly Property ActualEncoding As Encoding
public:
property Encoding^ ActualEncoding {
	Encoding^ get ();
}
Remarks

This read-only property describes the encoding used by the ZipEntry. If the entry has been read in from an existing ZipFile, then it may take the value UTF-8, if the entry is coded to specify UTF-8. If the entry does not specify UTF-8, the typical case, then the encoding used is whatever the application specified in the call to ZipFile.Read(). If the application has used one of the overloads of ZipFile.Read() that does not accept an encoding parameter, then the encoding used is IBM437, which is the default encoding described in the ZIP specification.

If the entry is being created, then the value of ActualEncoding is taken according to the logic described in the documentation for ProvisionalAlternateEncoding.

An application might be interested in retrieving this property to see if an entry read in from a file has used Unicode (UTF-8).

See Also

Assembly: Ionic.Zip (Module: Ionic.Zip) Version: 1.9.1.1 (1.9.1.1)   view TOC