From 51f067fcb23ae2c84ead4acfd3b65e825b976e1a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Mon, 31 Jan 2011 21:12:32 +0100 Subject: [PATCH] For catalyst/template_test branch. There are still issues with displaying biblios. Signed-off-by: Katrin Fischer Signed-off-by: Chris Cormack --- C4/Output.pm | 2 ++ C4/Templates.pm | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/Output.pm b/C4/Output.pm index d6e9fec0a2..abd8fc3639 100644 --- a/C4/Output.pm +++ b/C4/Output.pm @@ -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; } diff --git a/C4/Templates.pm b/C4/Templates.pm index 9a07d95232..a5981490a4 100644 --- a/C4/Templates.pm +++ b/C4/Templates.pm @@ -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; } } -- 2.11.0