View Single Post
Old 07-09-2007, 03:56 PM   #1
kenbaldwin
Connoisseur
kenbaldwin began at the beginning.
 
Posts: 74
Karma: 10
Join Date: Oct 2006
Device: Sony PRS-500
pdb2txt on Linux?

What do you guys recommend for converting pdb files to txt on Linux? Command line preferred. On Windows, I'm used to opening pdb files in iSilo and saving as txt, but I'm in the processing of moving to Linux.

I tried installing the p5-Palm Perl modules, and doing something like this:
Quote:
#!/usr/bin/perl

use Palm::Raw;
use Encode;

my $filename = $ARGV[0];

$pdb = new Palm::PDB;
$pdb->Load($filename);

foreach (@{$pdb->{records}}) {
print decode("iso-8859-1", $_->{data});
}
But the result is only partially human-readable. Maybe I just have the encoding wrong?

Thanks,
Ken
kenbaldwin is offline   Reply With Quote