From 2ad47a5e3c8a220cc17fd80038c35b5ab24240ad Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 16 Sep 2015 09:41:41 +0100 Subject: [PATCH] Bug 14832: Fix encoding issues when exporting in RIS Test plan: 1/ Make sure you have non ASCII chars in the title and the authors. 2/ Export the record in RIS You should not see any encoding problems. Signed-off-by: Magnus Enger Before patch: RIS file has wrongly encoded chars After patch: RIS file has no endcoding problems Tested on a NORMARC setup. Signed-off-by: Katrin Fischer Tested on a MARC21 and a UNIMARC database. Problem only confirmed for UNIMARC, but no regressions in MARC21. Signed-off-by: Tomas Cohen Arazi (cherry picked from commit f1eb76c831c9c6bc36a8b9d996b67942efe89cf1) Signed-off-by: Chris Cormack --- C4/Ris.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Ris.pm b/C4/Ris.pm index c93d27772a..4b7a869a81 100644 --- a/C4/Ris.pm +++ b/C4/Ris.pm @@ -99,7 +99,7 @@ sub marc2ris { open my $oldout, ">&STDOUT"; my $outvar; close STDOUT; - open STDOUT,'>', \$outvar; + open STDOUT,'>:encoding(utf8)', \$outvar; ## First we should check the character encoding. This may be -- 2.39.5