From fc6ffaaae828ef6cf7eb105271aed69fa8597e62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Dufour?= Date: Mon, 11 Jul 2016 14:23:16 +1200 Subject: [PATCH] Bug 16370 - Frameworks without 000 visible won't save UTF8 characters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Create a framework that doesn't include the 000 in the editor (set to ignore) alternatively, import the attached framework. Create or import a record that has UTF8 characters in it into that framework. I used āāāāāāā for the title, because that's easy to spot disappearing. Edit the record, and modify any field. You'll notice that the title is no longer displayed after you save it, and no longer appears in the editor. If you look in the database in biblioitems for this biblio, you'll spot that the MARC has the title saved, but the MARCXML does not. Apply the patch, redo above, fields with UTF8 Characters will be saved correctly Note (from Liz): I have no idea if this is the right solution, but it does fix the problem, so I'm formatting this as required for testing/inclusion on behalf of Cédric. --- C4/Biblio.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 2798325..7bb380e 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -2546,6 +2546,7 @@ sub TransformHtmlToMarc { # creating a new record my $record = MARC::Record->new(); + $record->encoding( 'UTF-8' ); my @fields; my ($biblionumbertagfield, $biblionumbertagsubfield) = (-1, -1); ($biblionumbertagfield, $biblionumbertagsubfield) = -- 1.9.1