Switch -SC<charset>[objects] - specify the character set
This switch allows to specify the character set for list files, log files and archive comment files.
'Charset' parameter is mandatory and can have one of the following
values:
U | Unicode UTF-16 |
F | Unicode UTF-8 |
A | Native single byte encoding, which is ANSI for Windows |
O | OEM (DOS) encoding |
Endianness of source UTF-16 files, such as list files or comments, is detected based on the byte order mark. If byte order mask is missing, little endian encoding is assumed.
'Objects' parameter is optional and can have one of the following
values:
G | Log files produced by -ilog switch |
L | List files |
C | Comment files |
It is allowed to specify more than one object, for example, -scolc. If 'objects' parameter is missing, 'charset' is applied to all objects.
This switch allows to specify the character set for files in -z<file> switch, list files and comment files written by cw command.
Examples
- Read names contained in 'list' using OEM encoding:
WinRAR a -scol data @list
- Read comment.txt as Unicode file:
WinRAR c -scuc -zcomment.txt data
- Write comment.txt as Unicode file:
WinRAR cw -scuc data comment.txt