Sign in Join
FPDoc Onlineexperiment

TUnZipper.UseUTF8 property

Member of TUnZipperpublicIn unit Zipper

Indicates that the UTF-8-encoded names are used when locating and unzipping entries in the archive.

Declaration

pascal
property UseUTF8: Boolean read FUseUTF8 write FUseUTF8;

Description

UseUTF8 is a Boolean property which indicates if UTF-8-encoded names are used when locating and unzipping items stored in the .ZIP archive.

Each TZipFileEntry instance stored in the Entries collection has both UTF-8-encoded and RawByteString (same as AnsiString with no code page) variants of file or directory names. Set UseUTF8 to True to use the UTF-8-encoded version. The default value is False, and causes the RawByteString version to be used.

UseUTF8 is used when methods like UnZipAllFiles, UnZipFiles, and UnZipFile are called.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.