Re: MARC::File::XML utf8 output problem

2011-03-08 Thread Saiful Amin
> > However, when I try to generate MARCXML output with following code the >> > Arabic characters gets corrupted: >> >> > $xml = MARC::File::XML->out( $file ); >> > my $record = MARC::Record->new(); >> > ... >> > $xml->write( $record ); >> > ... >> > $xml->close(); >> >> > I've tried setting the en

Re: MARC::File::XML utf8 output problem

2011-03-08 Thread Saiful Amin
> > However, when I try to generate MARCXML output with following code the > > Arabic characters gets corrupted: > > > $xml = MARC::File::XML->out( $file ); > > my $record = MARC::Record->new(); > > ... > > $xml->write( $record ); > > ... > > $xml->close(); > > > I've tried setting the encoding in

Re: MARC::File::XML utf8 output problem

2011-03-08 Thread Frédéric DEMIANS
> However, when I try to generate MARCXML output with following code the > Arabic characters gets corrupted: > $xml = MARC::File::XML->out( $file ); > my $record = MARC::Record->new(); > ... > $xml->write( $record ); > ... > $xml->close(); > I've tried setting the encoding in various ways withou

MARC::File::XML utf8 output problem

2011-03-08 Thread Saiful Amin
Hi, I'm trying to create MARCXML records with data extracted from MySQL, in which some of the records are in Arabic. I'm using MARC::Record (2.0.3), MARC::File::XML (0.93) and DBD::mysql (4.012). The output into ISO2709 shows the Arabic utf8 strings correctly with following code snippet: $dbh =