From c9905750e53e2e1615842ac696d5eeb0a8ac07fc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Wed, 14 Sep 2011 21:44:49 +0200 Subject: [PATCH] Bug 6869 Batch item modification fails whit accented characters MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Corrects a problem in batchMod.pl when accented characters are used. When modifying multiple items in batchMod.pl, the batch modification fails if accented characters are used in any of the fields of the modification form. This is a port of Frédérick Capovilla patch from 3.2 to 3.4 version Signed-off-by: Ian Walls Signed-off-by: Chris Cormack --- tools/batchMod.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/batchMod.pl b/tools/batchMod.pl index 9d4431b91e..04cfc879c6 100755 --- a/tools/batchMod.pl +++ b/tools/batchMod.pl @@ -135,6 +135,7 @@ if ($op eq "action") { my ( $itemtagfield, $itemtagsubfield) = &GetMarcFromKohaField("items.itemnumber", ""); if ($values_to_modify){ my $xml = TransformHtmlToXml(\@tags,\@subfields,\@values,\@indicator,\@ind_tag, 'ITEM'); + utf8::encode($xml); $marcitem = MARC::Record::new_from_xml($xml, 'UTF-8'); } if ($values_to_blank){ -- 2.39.5