15 Apr 2008 14:58:18 UTC
- Distribution: Encode-StdIO
- Module version: 0.00001
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (951 / 0 / 15)
- KwaliteeBus factor: 1
- 21.11% Coverage
- License: perl_5
- Perl: v5.8.0
- Activity24 month
- Download (15.95KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionDMAKI Daisuke Makiand 1 contributors
- Copyright (c) 2008 Daisuke Maki C<>
Encode::StdIO - Setup STDIN/STDOUT/STDERR With Proper Encodings
use Encode::StdIO; # Use Term::Encoding to figure out the encoding use Encode::StdIO encoding => 'sjis'; # Now perl octets sent to STDOUT/STDERR automatically gets encoded to sjis
Encode::StdIO automatically sets up your STDIN/STDOUT/STDERR with whatever encoding you're using.
You can specify explicitly what encoding you want to setup:
use Encode::StdIO encoding => 'sjis';
or you can let Term::Encoding figure out what you are using:
If Term::Encoding fails to find the encoding, then utf-8 is assumed.
Copyright (c) 2008 Daisuke Maki
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Encode::StdIO, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Encode::StdIO
For more information on module installation, please visit the detailed CPAN module installation guide.