It reads octet by octet from files given on command line
(or standard input if no file is specified),
converts character encoding scheme (CES) as specified by command line options
and output to standard output
(or a file specified by -t option or -a option).
-?, -h, --help
display summary of options and exits.
output is appended to file.
specifies character encoding conversion.
converters must be comma separated list of
words described in ``Conversion specifiers''.
specifies flags to change behavior of conversion.
flags must be comma separated list of
words describe in ``Flag specifiers''.
succeeding options apply to input stream.
mime encoding conforming to RFC2047 is performed.
<string> is used as charset name.
line number (>= 1) is inserted to beginning of each line.
succeeding options apply to output stream.
output to file (truncated).
output width of each line.
-cs <string>, --charset=string
specifies charset name.
Some language specifications are also accepted as well as MIME charset names,
which are used to restrict candidates of encoding scheme of input stream.
Acceptable languages are listed in ``Acceptable languages''.
specifies output format
output charset name of each input stream to stderr,
in the form
file name":"charset name
if two or more files are specifed on the command line, or
specifies regeular expression to filter output.
Character encoding of regular expression can be specified
by putting string of the form
at the beginning of the regular expression,
Character encoding of the expression
is converted to that of output stream
Conversion is applied
just before each character is output to stream.
Conversion setup is automatically performed
based on CES.
So in most cases,
yo need not to specify converters explicitly.
domestic ASCII converted to US-ASCII,
converted appropriately according to
the CES bound to input/output stream,
converted to Unicode,
Fullwidth compatibility characters are converted to
corresponding halfwidth ones,
Halfwidth compatibility characters are converted to
corresponding fullwidth ones,
Codepoints in JIS C 6226 or in JIS X 0208 which are bound to no
character are converted into JIS X 0213 plane 1,
All codepoints in JIS C 6226 or in JIS X 0208 are converted into JIS X
0213 plane 1,
Unicode characters of code point between 0x80 and
0x9F (both inclusive) are converted to other
Unicode characters as if they are characters of those
code point in Microsoft Windows Codepage 1252.
Converters between some JIS X 0208 and Unicode characters having similar glyphs
(by the courtesy of Ambrose Li <email@example.com>).
use ``1/11 2/4 2/8 F''
instead of ``1/11 2/4 F''
to designate charsets with final octet
4/0, 4/1, or 4/2 to G0,
escape sequence ``1/11 2/8 4/2'' is
output before every control character,
escape sequence for 7 bit single shift
discard characters which CES bound
to output stream can not decode.
The following words may be given instead of MIME charset name for input stream.
In that case,
is automatically detected