For catalyst/template_test branch. There are still issues with displaying biblios.
authorFrédéric Demians <f.demians@tamil.fr>
Mon, 31 Jan 2011 20:12:32 +0000 (21:12 +0100)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 31 Jan 2011 20:36:19 +0000 (09:36 +1300)
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Output.pm
C4/Templates.pm

index d6e9fec..abd8fc3 100644 (file)
@@ -472,6 +472,8 @@ sub output_with_http_headers($$$$;$) {
     # remove SUDOC specific NSB NSE
     $data =~ s/\x{C2}\x{98}|\x{C2}\x{9C}/ /g;
     $data =~ s/\x{C2}\x{88}|\x{C2}\x{89}/ /g;
+    utf8::encode($data) if utf8::is_utf8($data);
+
     print $query->header($options), $data;
 }
 
index 9a07d95..a598149 100644 (file)
@@ -108,7 +108,6 @@ sub param{
     while(@_){
        my $key = shift;
        my $val = shift;
-        utf8::encode($val) if utf8::is_utf8($val);
        $self->{VARS}->{$key} = $val;
     }
 }