SysTutorials

Linux Manual Pages › Section 1

cvtenc(1)

NAME

cvtenc – file encoding converter

SYNOPSIS

cvtenc [-Encoding encoding] [-EscapeIn yes|NO] [-EscapeOut yes|NO]
 filename

DESCRIPTION

Converts a file encoded in a specified or default non-unicode encoding to unicode (UTF16), or, if the file is already in unicode, converts it to a specified or default non-unicode encoding. The converted text is printed to standard out. If the filename is a hyphen then this tool reads from standard input.

OPTIONS

-Encoding encoding
Specify non-unicode encoding to be used. The direction of conversion depends on whether the file given as input is recognized as unicode (from the higher order bytes). To get a list of available encodings, enter "list" for the encoding. If this is not specified, the default encoding for the current locale is used.
-EscapeIn YES|NO
Specify ‘-EscapeIn YES’ (the default is ‘NO’) to parse the input for