Bug 12411: Preferences values should be utf8 encoded
Test plan: Fill OPACMySummaryNote or NoLoginInstructions with something like "éàç" and verify the display is broken. Signed-off-by: Paola Rossi <paola.rossi@cineca.it> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com> Works as described. Fixes the issue.
This commit is contained in:
parent
6e20fdf4e7
commit
83a3c64372
|
|
@ -18,6 +18,7 @@ package Koha::Template::Plugin::Koha;
|
|||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
use Modern::Perl;
|
||||
use Encode qw( encode );
|
||||
|
||||
use base qw( Template::Plugin );
|
||||
|
||||
|
|
@ -41,7 +42,7 @@ is necessary.
|
|||
|
||||
sub Preference {
|
||||
my ( $self, $pref ) = @_;
|
||||
return C4::Context->preference( $pref );
|
||||
return encode('UTF-8', C4::Context->preference( $pref ) );
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue