1MAP(1)                User Contributed Perl Documentation               MAP(1)
2
3
4

NAME

6       map - An utility to map texts from and to unicode
7

SYNOPSIS

9        map - recode from and to various character sets.
10              Reads from STDIN, writes to STDOUT.
11        usage: map [--from cset] [--to cset] < input.txt > output.txt
12
13        from s  Encoding of input files (default "ISO-8859-1")
14        list    Lists available character sets and their alias names.
15        to   s  Encoding of output files (default "ISO-8859-1")
16

DESCRIPTION

18       Maps text from one character set representation to another. This work
19       is actually long time very well done by "recode", but unfortunately
20       recode does not support Unicode and eastern asia character sets. But,
21       if you have pure 8 bit things to do, recode will still be the best
22       solution.
23
24       Examples:
25
26       Conversion from ISO-8859-1 to Unicode:
27
28        map --to unicode < iso-8859-1.txt > unicode.txt
29
30       Conversion from GB2312 to CP936:
31
32        map --from cp936 --to GB2312 < gb2312.txt > cp936.txt
33
34       Conversion from CP850 to Unicode:
35
36        map --from cp850 --to unicode < cp850.txt > unicode.txt
37

SEE ALSO

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

AUTHOR

42       Martin Schwartz <martin@nacho.de>.
43
44
45
46perl v5.28.1                      2001-01-07                            MAP(1)
Impressum