@@ -, +, @@ --- Koha/Template/Plugin/Koha.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/Koha/Template/Plugin/Koha.pm +++ a/Koha/Template/Plugin/Koha.pm @@ -43,7 +43,8 @@ is necessary. sub Preference { my ( $self, $pref ) = @_; - return encode('UTF-8', C4::Context->preference( $pref ) ); + my $str = C4::Context->preference( $pref ); + return C4::Charset::IsStringUTF8ish($str) ? $str : encode('UTF-8', $str); } sub Version { --