NAME

map - A utility to map texts from and to unicode

SYNOPSIS

map alpha - recode from and to Unicode
usage: $PROGNAME {--option [arg]} [--from cset] || [--to cset] file(s)

dest_base  s  Store output files based at this directory
dirmode    s  New directories get access mode s (default 0700)
filemode   s  New files get access mode s (default 0600)
from       s  Encoding of input files (default $LC_CTYPE)
from_stdin    Take input from stdin
list          Lists available character sets and their alias names.
log           write a logfile
overwrite     Overwrite existing files
recurse       Operate recursively on directories
relative      Store files relatively to destdir when in recurse mode
src_base   s  Regard this as start directory in relative mode
suffix     s  Output files shall get suffix 's' (default: '.txt')
to         s  Encoding of output files (default $LC_CTYPE)
to_stdout     Write output to stdout

DESCRIPTION

Maps text from one character set representation to another. This work is actually long time very well done by recode, but unfortunately recode does not support Unicode and eastern asia character sets. But, if you have pure 8 bit things to do, recode will still be the best solution.

Examples:

Conversion from your $LC_CTYPE to Unicode:

map --to unicode *               

Conversion from CP936 to your $LC_CTYPE:

map --from cp936 *

Conversion from CP850 to Unicode:

map --from cp850 --to unicode *

SEE ALSO

recode(1), Unicode::Map(3), Unicode::Map8(3), Unicode::String(3)

AUTHOR

Martin Schwartz <schwartz@cs.tu-berlin.de>.