From 7f60b4f5a183d24f97a9ee5fc72721826850124b Mon Sep 17 00:00:00 2001 From: =?UTF-8?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=UTF-8 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 --- tools/batchMod.pl | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tools/batchMod.pl b/tools/batchMod.pl index 9d4431b..04cfc87 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){ -- 1.7.6.1