wide character in print in MARC::File::XML

[email protected] ("Rina Ron")
Newsgroups perl.perl4lib
Message-ID <8D054E2E14507243A096205AC4D6C26012A7F2@il-ex01.Corp.Exlibrisgroup.com>
I got the error "wide character in print at IO/Handle.pm line 399" and
solved it in a not nice way by using an object as a hash reference.
Perhaps there is a better way.

Here is what I have :

 

use MARC::File::XML ( BinaryEncoding => 'utf8', RecordFormat =>
'UNIMARC' );

use MARC::Batch;

use MARC::Record;

 

my $file_out = MARC::File::XML->out($filename_out );

my $fh = $file_out->{'fh'};

binmode $fh , ":utf8";

 

...

 

     $dynamic_record->encoding('UTF-8');

    $file_out->write( $dynamic_record );
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.