Xceed .NET Libraries Documentation
Xceed.Zip Assembly / Xceed.Zip Namespace / ZipArchive Class / DefaultUnicodeUsagePolicy Property


In This Topic
    DefaultUnicodeUsagePolicy Property
    In This Topic
    Gets or sets the default Unicode usage policy that will be applied to files that are added to the zip file.
    Syntax
    'Declaration
     
    Public Overridable Property DefaultUnicodeUsagePolicy As UnicodeUsagePolicy
    'Usage
     
    Dim instance As ZipArchive
    Dim value As UnicodeUsagePolicy
     
    instance.DefaultUnicodeUsagePolicy = value
     
    value = instance.DefaultUnicodeUsagePolicy
    public virtual UnicodeUsagePolicy DefaultUnicodeUsagePolicy {get; set;}

    Property Value

    A UnicodeUsagePolicy value representing the default Unicode usage policy that will be applied to files that are added to the zip file. By default, UnicodeUsagePolicy.Always.
    Remarks

    This property affects the filenames and file comments for items added to a zip file. It does not affect the global zip file comment, which cannot be written as Unicode.

    Each file/folder is examined individually.

    This property affects the behavior of the DefaultTextEncoding and DefaultExtraHeaders properties.

    If NonASCIIOnly is used and no non-ASCII data is detected for a particular file, the standard text encoding will be used regardless of the value specified to the DefaultTextEncoding property and the Unicode, UTF8Filename, and UTF8Comment extra headers will not be written for that file.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also