Bug 12279: Diacritics in system preference editor broken

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>
This commit is contained in:
Marcel de Rooy 2014-05-28 14:43:51 +02:00 committed by Tomas Cohen Arazi
parent 789c562e18
commit 2fa2480447

View file

@ -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 {