Hi all I'm trying to get the info from a PDF with a code like:
####################################################### ... use Data::Dumper; use PDF::API2; ... my $pdf = PDF::API2->open('/home/.../PDF.pdf'); print Dumper +{ $pdf->info() }; ####################################################### This code gets me something like: ####################################################### $VAR1 = { 'Subject' => 'my subject', 'CreationDate' => 'D:20111006161347+02\'00\'', 'Producer' => 'LibreOffice 3.3', 'Creator' => 'Writer', 'Author' => 'Marcos Rebelo', 'Title' => 'my title', 'Keywords' => 'my keywords' }; ####################################################### Unfortunatly someone has the code: < use encoding 'utf8'; > and now I get: ####################################################### $VAR1 = { 'Subject' => "\x{fffd}\x{fffd}my subject", 'CreationDate' => 'D:20111006161347+02\'00\'', 'Producer' => "\x{fffd}\x{fffd}LibreOffice 3.3", 'Creator' => "\x{fffd}\x{fffd}Writer", 'Author' => "\x{fffd}\x{fffd}Marcos Rebelo", 'Title' => "\x{fffd}\x{fffd}my title", 'Keywords' => "\x{fffd}\x{fffd}my keywords" }; ####################################################### I can't remove the < use encoding 'utf8'; >, but I need to clean the hash. How can I clean the hash? Best Regards Marcos Rebelo -- Marcos Rebelo http://www.oleber.com/ Webmaster of http://perl5notebook.oleber.com -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/