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
20       technology demonstrator for Perl 5.8.0, but you can use piconv in the
21       place of iconv for virtually any case.
22
23       piconv converts the character encoding of either STDIN or files
24       specified 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
47           standard and common aliases work, such as "latin1" for
48           "ISO-8859-1", or "ibm850" instead of "cp850", or "winlatin1" for
49           "cp1252".  See 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       --htmlcref
59       --xmlcref
60           Applies PERLQQ, HTMLCREF, XMLCREF, respectively.  Try
61
62             piconv -f utf8 -t ascii --perlqq
63
64           To see what it does.
65
66       -h,--help
67           Show usage.
68
69       -D,--debug
70           Invokes debugging mode.  Primarily for Encode hackers.
71
72       -S,--scheme scheme
73           Selects which scheme is to be used for conversion.  Available
74           schemes are as follows:
75
76           from_to
77               Uses Encode::from_to for conversion.  This is the default.
78
79           decode_encode
80               Input strings are decode()d then encode()d.  A straight two-
81               step implementation.
82
83           perlio
84               The new perlIO layer is used.  NI-S' favorite.
85
86               You should use this option if you are using UTF-16 and others
87               which linefeed is not $/.
88
89           Like the -D option, this is also for Encode hackers.
90

SEE ALSO

92       iconv(1) locale(3) Encode Encode::Supported Encode::Alias PerlIO
93
94
95
96perl v5.12.4                      2011-11-04                         PICONV(1)
Impressum