NAME

piconv -- iconv(1), reinvented in perl

SYNOPSIS

piconv [-f from_encoding] [-t to_encoding] [-s string] [files...]
piconv -l

DESCRIPTION

piconv is perl version of iconv, a character encoding converter widely availabe for various unixen today. This script was primarily a technology demostrator for Perl 5.8.0, you can use piconv in the place of iconv for virtually any cases.

piconv converts character encoding of either STDIN or files specified in the argument and prints out to STDOUT.

Here are list of options.

-f from_encoding

Specifies the encoding you are converting from. Unlike iconv, this option can be ommited. In such cases the current locale is used.

-t to_encoding

Specifies the encoding you are converting to. Unlike iconv, this option can be ommited. In such cases the current locale is used.

Therefore when both -f and -t are omitted, piconv just acts like cat.

-s string

uses string instead of file for the source of text. Same as iconv.

-l

Lists all available encodings to STDERR. This feature is missing from iconv.

-D

Invokes debugging mode. primarily for Encode hackers.

-S scheme

Selects which scheme is to be used for conversion. Available schemes are as follows;

from_to

Uses Encode::from_to for conversion. This is the default.

decode_encode

Input strings are decode()ed then encode()ed. A straight step-by-step implementation.

perlio

The new perlIO layer is used. NI-S favorite.

Like -D option, this is also for Encode hackers.

SEE ALSO

iconv(1) locale(3) Encode PerlIO