Switch -SC<charset>[objects] - specify the character set


This switch allows to specify the character set for list files and archive comment files.

'Charset' parameter is mandatory and can have one of the following values:

U Unicode
A ANSI (Windows) encoding
O OEM (DOS) encoding

Files in Unicode format must have FFFE or FEFF Unicode character in the beginning, otherwise WinRAR will ignore this switch and process the file as ASCII text.

'Objects' parameter is optional and can have one of the following values:

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

  1. Read names contained in 'list' using OEM encoding:

WinRAR a a -scol data @list

  1. Read comment.txt as Unicode file:

WinRAR c -scuc -zcomment.txt data

  1. Write comment.txt as Unicode file:

WinRAR cw -scuc data comment.txt

See also: