projects
/
migration-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
open files in UTF-8 mode to help MARC::Batch
[migration-tools.git]
/
spit_tlc_marc_holdings.pl
diff --git
a/spit_tlc_marc_holdings.pl
b/spit_tlc_marc_holdings.pl
index
bf783ad
..
c1a0559
100755
(executable)
--- a/
spit_tlc_marc_holdings.pl
+++ b/
spit_tlc_marc_holdings.pl
@@
-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();