piconv -- iconv(1), reinvented in perl
piconv [-f from_encoding] [-t to_encoding] [-s string] [files...] piconv -l piconv [-C N|-c|-p] piconv -S scheme ... piconv -r encoding piconv -D ... piconv -h
piconv is perl version of iconv, a character encoding converter widely available for various Unixen today. This script was primarily a technology demonstrator for Perl 5.8.0, but you can use piconv in the place of iconv for virtually any case.
piconv converts the character encoding of either STDIN or files specified in the argument and prints out to STDOUT.
Here is the list of options. Each option can be in short format (-f) or long (--from).
Specifies the encoding you are converting to. Unlike iconv, this option can be omitted. In such cases, the current locale is used.
Therefore, when both -f and -t are omitted, piconv just acts like cat.
Applies PERLQQ, HTMLCREF, XMLCREF, respectively. Try
piconv -f utf8 -t ascii --perlqq
To see what it does.
Selects which scheme is to be used for conversion. Available schemes are as follows:
The new perlIO layer is used. NI-S' favorite.
You should use this option if you are using UTF-16 and others which linefeed is not $/.
Like the -D option, this is also for Encode hackers.
iconv/1 locale/3 Encode Encode::Supported Encode::Alias PerlIO