[Koha-bugs] [Bug 23542] SRU import encoding issue

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jun 29 15:51:07 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23542

--- Comment #15 from Fridolin SOMERS <fridolin.somers at biblibre.com> ---
(In reply to Fridolin SOMERS from comment #11)
> Ah I think I found the correct same code :
> 
> In Koha::MetadataRecord::Authority : 
> get_from_breeding {
>     my $record=eval
> {MARC::Record->new_from_xml(StripNonXmlChars($marcxml),'UTF-8',
>         (C4::Context->preference("marcflavour") eq
> "UNIMARC"?"UNIMARCAUTH":C4::Context->preference("marcflavour")))};
>     return if ($@);
>     $record->encoding('UTF-8');
> 
> So it is more "$record->encoding('UTF-8')" that is missing. It sets 'a' in
> leader position 9.
> This is called in SetMarcUnicodeFlag().
> 
> See also Bug 18153.

Here you see that MARC::Records->new_from_usmarc() calls :
  $marc->encoding() eq 'UTF-8'
https://metacpan.org/source/GMCHARLT/MARC-Record-2.0.7/lib/MARC/File/USMARC.pm#L172

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list