@@ -, +, @@ encoding - Edit a value of LOST authorized values to have a description with a diacritical character - Edit a biblio to have an item using this authorized value in items.itemlost - Go to OPAC detail page of this biblio => Lost description must be correctly encoded - Choose a serial subscription - Edit its branch to has a diacritical character in name - Go to subscription details : serials/subscription-detail.pl --- Koha/Template/Plugin/KohaAuthorisedValues.pm | 4 +++- Koha/Template/Plugin/KohaBranchName.pm | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) --- a/Koha/Template/Plugin/KohaAuthorisedValues.pm +++ a/Koha/Template/Plugin/KohaAuthorisedValues.pm @@ -19,6 +19,7 @@ package Koha::Template::Plugin::KohaAuthorisedValues; use Modern::Perl; +use Encode; use Template::Plugin; use base qw( Template::Plugin ); @@ -44,7 +45,8 @@ will print the OPAC description for the LOST value stored in item.itemlost. sub GetByCode { my ( $self, $category, $code, $opac ) = @_; - return GetAuthorisedValueByCode( $category, $code, $opac ); + my $lib = GetAuthorisedValueByCode( $category, $code, $opac ); + return Encode::encode_utf8($lib); } 1; --- a/Koha/Template/Plugin/KohaBranchName.pm +++ a/Koha/Template/Plugin/KohaBranchName.pm @@ -20,16 +20,18 @@ package Koha::Template::Plugin::KohaBranchName; use strict; use warnings; +use Encode; use Template::Plugin::Filter; use base qw( Template::Plugin::Filter ); use warnings; use strict; -use C4::Branch qw( GetBranchName );; +use C4::Branch qw( GetBranchName ); sub filter { my ($self,$branchcode) = @_; - return GetBranchName( $branchcode ); + my $branchname = GetBranchName( $branchcode ); + return Encode::encode_utf8($branchname); } 1; --