File: charset.htm

package info (click to toggle)
p7zip 16.02%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 14,144 kB
  • sloc: cpp: 167,145; ansic: 14,992; python: 1,911; asm: 1,688; sh: 1,132; makefile: 701
file content (61 lines) | stat: -rw-r--r-- 1,997 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
  <META http-equiv="Content-Type" content="text/html; charset=Windows-1252">
  <TITLE>-scs (Set charset for list files) switch</TITLE>
  <LINK href="style.css" rel="stylesheet" type="text/css">
</HEAD>

<BODY>

<H1>-scs (Set charset for list files) switch</H1>

<P>Sets charset for list files.</P>

<H4>Syntax</H4>

<PRE class="syntax">
-scs{UTF-8 | UTF-16LE | UTF-16BE | WIN | DOS | {id} }
</PRE>

<P>Default charset is UTF-8.</P>

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

<P>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).</P>

<H4>Examples</H4>

<PRE class="example">
7z a archive.7z @listfile.txt -scsWIN
</PRE>

<P>compresses files from <SPAN class="filename">listfile.txt</SPAN> list, that contains 
list of files in default character set of Windows.</P>

<PRE class="example">
7z a archive.7z @listfile.txt -scs1251
</PRE>

<P>compresses files from <SPAN class="filename">listfile.txt</SPAN> list, that contains 
list of files in 1251 (Cyrillic Windows) codepage.</P>

<H4>Commands that can be used with this switch</H4>

<P>
  <A href="../commands/add.htm">a (Add)</A>,
  <A href="../commands/update.htm">u (Update)</A>
</P>

</BODY>
</HTML>