[Koha-patches] [PATCH 2/2] Bug 5106 Followup

LAURENT Henri-Damien henridamien.laurent at biblibre.com
Wed Dec 8 09:16:40 CET 2010


Hi,

Le 07/12/2010 22:39, Frédéric Demians a écrit :

> - UTF8 encoding issue, UTF8 characters were not displayed properly
> - UNIMARC XSL as the MARC21 doesn't show anymore 2 links to MARC view
> 
> Signed-off-by: Frédéric Demians <f.demians at tamil.fr>
> ---

>      my $results = $stylesheet->transform($source);
>      my $newxmlrecord = $stylesheet->output_string($results);
In my experience, unconditional utf8::decode can be harmful.
Would you mind using : C4::Charset.pm IsStringUTF8ish function ?

> +    utf8::decode($newxmlrecord);
>      #warn $newxmlrecord;
>      print $input->header(), $newxmlrecord;
>      exit;

-- 
Henri-Damien LAURENT


More information about the Koha-patches mailing list