我正在使用MARC::Lint
lint 一些 MARC 记录,但现在我遇到了一个错误(大约 1% 的文件):
utf8 "\xCA" does not map to Unicode at /usr/lib/x86_64-linux-gnu/perl/5.26/Encode.pm line 212.
问题是我尝试了不同的方法,但在文件中找不到"\xCA"
...
我的脚本是:
#!perl -w
use MARC::File::USMARC;
use MARC::Lint;
use utf8;
use open OUT => ':utf8';
my $lint = new MARC::Lint;
my $filename = shift;
my $file = MARC::File::USMARC->in( $filename );
while ( my $marc = $file->next() ) {
$lint->check_record( $marc );
# Print the errors that were found
print join( "\n", $lint->warnings ), "\n";
} # while
文件可以在这里下载:http: //eroux.fr/I14376.mrc
“\xCA”是否隐藏在某处?或者这是 MARC::Lint 中的错误?