encoding::stdio - Provides an easy way to set encoding layers on STDOUT and STDIN
use encoding::stdio "utf8"; use encoding::stdio ":locale";
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.
encoding
We can add new modules, though.
encoding::stdio only installs the PerlIO :encoding layers on STDOUT and STDIN, without installing a source filter.
encoding::stdio
:encoding
See encoding::source by Rafael Garcia-Suarez for handling source encoding without touching stdio encodings.
encoding::source
See encoding for usage information.
Juerd Waalboer <juerd@cpan.org>
encoding::source, encoding
To install encoding::stdio, copy and paste the appropriate command in to your terminal.
cpanm
cpanm encoding::stdio
CPAN shell
perl -MCPAN -e shell install encoding::stdio
For more information on module installation, please visit the detailed CPAN module installation guide.