-scs (Set charset for list files) switch

7-Zip 15.14

-scs (Set charset for list files) switch

Sets charset for list files.

Syntax

-scs{UTF-8 | UTF-16LE | UTF-16BE | WIN | DOS | {id} }

Default charset is UTF-8.

Value Description
UTF-8 Unicode UTF-8 character set.
UTF-16LE Unicode UTF-16 little-endian character set.
UTF-16BE Unicode UTF-16 big-endian character set.
WIN Default character set of Windows.
DOS Default DOS (OEM) character set of Windows.
{id} The code page number (as specified in Microsoft Windows).

Notes: The list file in Unicode charset can start with the BOM (byte order mark) character (U+FEFF). In that case 7-Zip checks that encoding of BOM corresponds to encoding specified with this switch (for UTF-16LE and UTF-16BE).

Examples

7z a archive.7z @listfile.txt -scsWIN

compresses files from listfile.txt list, that contains list of files in default character set of Windows.

7z a archive.7z @listfile.txt -scs1251

compresses files from listfile.txt list, that contains list of files in 1251 (Cyrillic Windows) codepage.

Commands that can be used with this switch

a (Add), u (Update)