NAME

encoding::stdio - Provides an easy way to set encoding layers on STDOUT and STDIN

SYNOPSIS

use encoding::stdio "utf8";
use encoding::stdio ":locale";

DESCRIPTION

The encoding pragma assumes that the development environment and the environment in which the program will run, use the same character encoding. Typically, they will be different, but unfortunately, it's too late to change encoding now.

We can add new modules, though.

encoding::stdio only installs the PerlIO :encoding layers on STDOUT and STDIN, without installing a source filter.

See encoding::source by Rafael Garcia-Suarez for handling source encoding without touching stdio encodings.

See encoding for usage information.

AUTHOR

Juerd Waalboer <juerd@cpan.org>

SEE ALSO

encoding::source, encoding