Daisuke Maki > Encode-Argv-0.00001 > Encode::Argv

Download:
Encode-Argv-0.00001.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.00001   Source   Latest Release: Encode-Argv-0.00002

NAME ^

Encode::Argv - Automatically Mess With @ARGV's Encoding

SYNOPSIS ^

  use Encode::Argv ('cp932');
  # Now @ARGV is decoded unicode characters, decoded from cp932

  use Encode::Argv ('cp932' => 'euc-jp');
  # Now @ARGV is encoded into euc-jp after being decoded from cp932

DESCRIPTION ^

I saw http://search.cpan.org/dist/Sjis|Sjis.pm and http://www.aritia.org/hizumi/perl/perlwin.html|this, and thought, "Well, I can't fix /all/ of their problems, but I can at least start".

So here's a module that silently encodes/decodes your @ARGV from/to encodings supported by Encode.pm

All you need to do is to simply specify the encodings you want to use:

  use Encode::Argv ('cp932');

There, you got yourself an unicode @ARGV on ShiftJIS Windows.

Of course, this doesn't solve the entire problem, but it's at least a start

AUTHOR ^

Copyright (c) 2008 Daisuke Maki <daisuke@endeworks.jp>

LICENSE ^

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html