open files in UTF-8 mode to help MARC::Batch
[migration-tools.git] / spit_tlc_marc_holdings.pl
index bf783ad..c1a0559 100755 (executable)
@@ -35,7 +35,10 @@ foreach my $argnum ( 0 .. $#ARGV ) {
 
        print STDERR "Processing " . $ARGV[$argnum] . "\n";
 
-       my $batch = MARC::Batch->new('XML',$ARGV[$argnum]);
+    my $M;
+    open $M, '<:utf8', $ARGV[$argnum];
+    my $batch = MARC::Batch->new('XML',$M);
+
        $batch->strict_off();
        $batch->warnings_off();