Bug 12279: Diacritics in system preference editor broken
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 28 May 2014 12:43:51 +0000 (14:43 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 2 Jun 2014 14:43:04 +0000 (11:43 -0300)
Temporary fix into preferences.pl.
Bug 11944 should provide the real fix..

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
admin/preferences.pl

index 8bcdb0a..1513adc 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 {