From 9a9bc82c84fd543c26639ba1ae298c0bbfde9e04 Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Fri, 14 Dec 2007 18:28:15 +0100 Subject: [PATCH] UTF-8 and Nozebra fixes - .txt files have to be in utf-8 (as Koha is utf-8 now), and opened as utf-8 files otherwise, the diacritics are mixed up on web installer - typo fix (NoZebra vs Nozebra) to set correctly Nozebra syspref Signed-off-by: Joshua Ferraro --- installer/install.pl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/installer/install.pl b/installer/install.pl index bfa5e223fb..3cb698c983 100755 --- a/installer/install.pl +++ b/installer/install.pl @@ -281,10 +281,13 @@ elsif ( $step && $step == 3 ) { $template->param( "$op" => 1 ); } elsif ( $op && $op eq 'Nozebra' ) { - if ($query->param('Nozebra')) { + warn "OP : $op"; + if ($query->param('NoZebra')) { + warn "HERE"; $dbh->do("UPDATE systempreferences SET value=1 WHERE variable='NoZebra'"); $dbh->do("UPDATE systempreferences SET value=0 WHERE variable in ('QueryFuzzy','QueryWeightFields','QueryStemming')"); } else { + warn "WRONG"; $dbh->do("UPDATE systempreferences SET value=0 WHERE variable='NoZebra'"); } $template->param( "$op" => 1 ); @@ -446,7 +449,7 @@ elsif ( $step && $step == 3 ) { my @frameworklist; map { my $name = substr( $_, 0, -4 ); - open FILE, "< $dir/$requirelevel/$name.txt"; + open FILE, "<:utf8","$dir/$requirelevel/$name.txt"; my $lines = ; $lines =~ s/\n|\r/
/g; use utf8; @@ -493,7 +496,7 @@ elsif ( $step && $step == 3 ) { my @frameworklist; map { my $name = substr( $_, 0, -4 ); - open FILE, "< $dir/$requirelevel/$name.txt"; + open FILE, "<:utf8","$dir/$requirelevel/$name.txt"; my $lines = ; $lines =~ s/\n|\r/
/g; use utf8; -- 2.39.5