1PICONV(1)              Perl Programmers Reference Guide              PICONV(1)
2
3
4

NAME

6       piconv -- iconv(1), reinvented in perl
7

SYNOPSIS

9         piconv [-f from_encoding] [-t to_encoding] [-s string] [files...]
10         piconv -l
11         piconv [-C N⎪-c⎪-p]
12         piconv -S scheme ...
13         piconv -r encoding
14         piconv -D ...
15         piconv -h
16

DESCRIPTION

18       piconv is perl version of iconv, a character encoding converter widely
19       available for various Unixen today.  This script was primarily a tech‐
20       nology demonstrator for Perl 5.8.0, but you can use piconv in the place
21       of iconv for virtually any case.
22
23       piconv converts the character encoding of either STDIN or files speci‐
24       fied in the argument and prints out to STDOUT.
25
26       Here is the list of options.  Each option can be in short format (-f)
27       or long (--from).
28
29       -f,--from from_encoding
30           Specifies the encoding you are converting from.  Unlike iconv, this
31           option can be omitted.  In such cases, the current locale is used.
32
33       -t,--to to_encoding
34           Specifies the encoding you are converting to.  Unlike iconv, this
35           option can be omitted.  In such cases, the current locale is used.
36
37           Therefore, when both -f and -t are omitted, piconv just acts like
38           cat.
39
40       -s,--string string
41           uses string instead of file for the source of text.
42
43       -l,--list
44           Lists all available encodings, one per line, in case-insensitive
45           order.  Note that only the canonical names are listed; many aliases
46           exist.  For example, the names are case-insensitive, and many stan‐
47           dard and common aliases work, such as "latin1" for "ISO-8859-1", or
48           "ibm850" instead of "cp850", or "winlatin1" for "cp1252".  See
49           Encode::Supported for a full discussion.
50
51       -C,--check N
52           Check the validity of the stream if N = 1.  When N = -1, something
53           interesting happens when it encounters an invalid character.
54
55       -c  Same as "-C 1".
56
57       -p,--perlqq
58           Same as "-C -1".
59
60       -h,--help
61           Show usage.
62
63       -D,--debug
64           Invokes debugging mode.  Primarily for Encode hackers.
65
66       -S,--scheme scheme
67           Selects which scheme is to be used for conversion.  Available
68           schemes are as follows:
69
70           from_to
71               Uses Encode::from_to for conversion.  This is the default.
72
73           decode_encode
74               Input strings are decode()d then encode()d.  A straight two-
75               step implementation.
76
77           perlio
78               The new perlIO layer is used.  NI-S' favorite.
79
80           Like the -D option, this is also for Encode hackers.
81

SEE ALSO

83       "1" in iconv "3" in locale Encode Encode::Supported Encode::Alias Per‐
84       lIO
85
86
87
88perl v5.8.8                       2008-05-05                         PICONV(1)
Impressum