cmwrecode


NAME

cmwrecode - charset recoder


SYNOPSIS

 cmwrecode [-t tabdir] [-e errchar] [-s src_charset] [-c dst_charset] [-r] [file...]


DESCRIPTION

Script works as filter recoding input files from src_charset to dst_charset.

Options

-t tabdir
Sets alternate location for directory with charset tables. Default - /usr/local/cmw-net1/tables.

-e errchar
Sets placeholder for symbols missing in dst_charset. Default '?'.

-s src_charset
Sets source charset for recoding. Default utf-8.

-c dst_charset
Sets target charset. Default utf-8.

-d
Tries to determine source charset from input stream itself, assuming it is html or xml text. Tags <meta http-equiv=``Content-type'' content=``...; charset=CHARSET_NAME''> or <?xml ... encoding=CHARSET_NAME?> are taken in mind.

-h
Prints short help and list of available charsets.


WARNING

Script is used during Communiware installation, and called as

        perl -I<cmw_distr_root> cmwrecode <args>

instead of cmwrecode <args>. This means that it always uses dummy bytes.pm module from Communiware distributiwe regardless perl version. This feature may cause unexpected errors.

16 октябрь 2007 13:45