From 1068fcd9d419f084ae48a63eb7851fb230d3264b Mon Sep 17 00:00:00 2001 From: Hammat Wele Date: Mon, 26 Aug 2024 21:21:50 +0000 Subject: [PATCH] Bug 37184: Special character encoding problem when importing MARC file from the Acquisitions module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Go to Cataloging > "Stage records for import". 2. Upload the file "ExportMemento2024061010532869Marc8.mrc" or a MARC8 encoded file. 3. In the form, select the options : - Record type: Bibliographic - Character encoding: MARC8 - Format: MARC 4. Click "Stage for import". 5. Find or create an open basket in the Acquisitions module. 6. Click "add to basket". 7. Select "From a staged file" and select the previous staged file. 9. Click "Select all" to check all records. 10. In the item information tab, choose the Document type. 11. Verify the titles of the records in the basket: --> Koha replaces accents with symbols � 12. Apply the patch. 13. Do the same from step 1 and notice there is no more encoding issues. Signed-off-by: Phil Ringnalda --- Koha/Import/Record.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Import/Record.pm b/Koha/Import/Record.pm index ea238e6254..14fab57e54 100644 --- a/Koha/Import/Record.pm +++ b/Koha/Import/Record.pm @@ -56,7 +56,7 @@ sub get_marc_record { $format = 'UNIMARCAUTH'; } - my $record = MARC::Record->new_from_xml($self->marcxml, $self->encoding, $format); + my $record = MARC::Record->new_from_xml( $self->marcxml, 'UTF-8', $format ); return $record; } -- 2.44.0