encoding-handling Text::CSV
Clone or download
Pull request Compare This branch is 29 commits ahead of makamaka:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/Text/CSV
sample
t
.gitignore
Changes
MANIFEST.SKIP
Makefile.PL
README.pod
dist.ini

README.pod

NAME

Text::CSV::Encoded - Encoding aware Text::CSV.

SYNOPSIS

# Here in Perl 5.8 or later
$csv = Text::CSV::Encoded->new ({
    encoding_in  => "iso-8859-1", # the encoding comes into   Perl
    encoding_out => "cp1252",     # the encoding comes out of Perl
});

# parsing CSV is regarded as input
$csv->parse( $line );      # $line is a iso-8859-1 encoded string
@columns = $csv->fields(); # they are unicode data

DESCRIPTION

This module inherits Text::CSV and is aware of input/output encodings.

INSTALLATION

This module sources are hosted on github https://github.com/singingfish/Text-CSV-Encoded and uses Dist::Zilla to generate the distribution. It can be istalled:

directly
cpanm git://github.com/singingfish/Text-CSV-Encoded.git
from CPAN
cpanm Text::CSV::Encoded # or
cpan Text::CSV::Encoded
maualy cloninig the repository:
git clone https://github.com/singingfish/Text-CSV-Encoded.git
cd https://github.com/singingfish/Text-CSV-Encoded
perl Makefile.PL
make
make test
make install

REQUIREMENTS

This distribution requires Perl v5.8.0.

This distribution requires the following modules:

COPYRIGHT AND LICENSE

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