Cstools
view release on metacpan or search on metacpan
bin/dbfcstocs.PL view on Meta::CPAN
#
# This extraction code was taken from the libwww modules.
#
use Config;
my $filename = $0;
$filename =~ s/\.PL$//;
open OUT,">$filename" or die "Can't create $filename: $!";
chmod(0755, $filename);
print "Extracting $filename (with #! substitution)\n";
print OUT <<"EOHEADER";
$Config{'startperl'} -w
eval 'exec perl -S \$0 "\$@"'
if 0;
EOHEADER
print OUT <<'EOBODY';
use vars qw( $running_under_some_shell );
=head1 NAME
dbfcstocs -- charset conversion of dbf files
=head1 FORMAT
dbfcstocs [options] src_encoding dst_encoding [file.dbf outfile.dbf...]
=head1 SYNOPSIS
dbfcstocs il2 1250 table.dbf table1.dbf
Please see the
dbfcstocs --help
for short usage info.
=head1 DESCRIPTION
This script is a wrapper aound the cstocs utility, please see its man
page first. This program converts charsets in dbf database files. You
can also use the --field-names-charset option which will specify to
which charset to convert the field names. So you can convert file in
Windows-1250 to IOS-8859-2, but have its field names converted to
US-ASCII:
dbfcstocs --field-names-charset-ascii 1250 il2 table.dbf table1.dbf
After the encoding specifications, pass couples of input dbf file,
output destination file names.
=head1 SEE ALSO
cstocs(1).
=head1 AUTHOR
Jan Pazdziora
=cut
use strict;
use Cz::Cstocs;
use Cz::Cstocs::Getopt;
use XBase;
( run in 1.147 second using v1.01-cache-2.11-cpan-39bf76dae61 )