if ($marcxml) {
$record = eval {
- MARC::Record::new_from_xml( $marcxml, "utf8",
+ MARC::Record::new_from_xml( $marcxml, "UTF-8",
C4::Context->preference('marcflavour') );
};
if ($@) { warn " problem with :$biblionumber : $@ \n$marcxml"; }
my $record;
if ( $self->format eq 'marcxml' ) {
- $record = eval { MARC::Record::new_from_xml( $self->metadata, 'utf-8', $self->schema ); };
+ $record = eval { MARC::Record::new_from_xml( $self->metadata, 'UTF-8', $self->schema ); };
my $marcxml_error = $@;
chomp $marcxml_error;
unless ($record) {
$marcxml = C4::Charset::StripNonXmlChars( $marcxml );
my $record = eval {
- MARC::Record::new_from_xml($marcxml, 'utf8', $marcflavour);
+ MARC::Record::new_from_xml($marcxml, 'UTF-8', $marcflavour);
};
if ($@) {
push @errors, $biblionumber;
MARC::File::XML->default_record_format(C4::Context->preference('marcflavour'));
my $record;
eval {
- $record = MARC::Record::new_from_xml($marcxml, "utf8", C4::Context->preference('marcflavour'));
+ $record = MARC::Record::new_from_xml($marcxml, "UTF-8", C4::Context->preference('marcflavour'));
};
if($@) {
warn "(biblio $biblionumber) Error while creating record from marcxml: $@";
if ( $marcxml ) {
$marcxml = StripNonXmlChars( $marcxml );
my $marc_rec =
- MARC::Record::new_from_xml( $marcxml, 'utf8',
+ MARC::Record::new_from_xml( $marcxml, 'UTF-8',
C4::Context->preference('marcflavour') );
$issue->{normalized_upc} = GetNormalizedUPC( $marc_rec, C4::Context->preference('marcflavour') );
}
my $inxml = $query->param('POSTDATA');
print $query->header(-type => 'text/xml', -charset => 'utf-8');
- my $record = eval {MARC::Record::new_from_xml( $inxml, "utf8", C4::Context->preference('marcflavour'))};
+ my $record = eval {MARC::Record::new_from_xml( $inxml, "UTF-8", C4::Context->preference('marcflavour'))};
my $do_not_escape = 0;
if ($@) {
$result->{'status'} = "failed";
}
my $marcflavour = C4::Context->preference('marcflavour') || 'MARC21';
- my $marc_record = eval {MARC::Record::new_from_xml( $inxml, "utf8", $marcflavour)};
+ my $marc_record = eval {MARC::Record::new_from_xml( $inxml, "UTF-8", $marcflavour)};
if ($@) {
$result->{'status'} = "failed";
$result->{'error'} = $@;
print $query->header(-type => 'text/xml', -charset => 'utf-8');
my $marcflavour = C4::Context->preference('marcflavour') || 'MARC21';
- my $record = eval {MARC::Record::new_from_xml( $inxml, "utf8", $marcflavour)};
+ my $record = eval {MARC::Record::new_from_xml( $inxml, "UTF-8", $marcflavour)};
my $do_not_escape = 0;
if ($@) {
$result->{'status'} = "failed";