Bug 11425: DBRev 3.17.00.046
[koha.git] / admin / preferences.pl
index 8bcdb0a..2d0bac5 100755 (executable)
@@ -21,6 +21,7 @@ use strict;
 use warnings;
 
 use CGI;
+use Encode;
 use C4::Auth;
 use C4::Context;
 use C4::Koha;
@@ -54,7 +55,7 @@ sub GetTab {
         local_currency => $local_currency, # currency code is used, because we do not know how a given currency is formatted.
     );
 
-    return YAML::Syck::Load( $tab_template->output() );
+    return YAML::Syck::Load( Encode::decode('UTF-8',$tab_template->output()) );
 }
 
 sub _get_chunk {
@@ -263,7 +264,7 @@ my $dbh = C4::Context->dbh;
 our $input = new CGI;
 
 my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
-    {   template_name   => "admin/preferences.tmpl",
+    {   template_name   => "admin/preferences.tt",
         query           => $input,
         type            => "intranet",
         authnotrequired => 0,